1
Fork 0
mirror of https://github.com/RYGhub/royal-mifia.git synced 2025-02-16 13:24:06 +00:00
This commit is contained in:
Steffo 2017-07-12 01:08:36 +03:00
parent 9ce7c0e83e
commit 422c63a45d

View file

@ -130,9 +130,9 @@ class Game:
def updategroupname(self, bot):
try:
if self.phase == "Voting":
bot.setChatTitle(self.groupid, s.group_name.format(phase=s.day.format(day=self.day), name=self.name))
bot.set_chat_title(self.groupid, s.group_name.format(phase=s.day.format(day=self.day), name=self.name))
else:
bot.setChatTitle(self.groupid, s.group_name.format(phase=self.phase, name=self.name))
bot.set_chat_title(self.groupid, s.group_name.format(phase=self.phase, name=self.name))
except Unauthorized:
print("Bot is not administrator in group {}".format(self.groupid))