Fix possible duplicate room creation after upgrading group and restarting

This commit is contained in:
Tulir Asokan
2018-12-20 00:07:35 +02:00
parent b2e183e363
commit 85dc424ea0
2 changed files with 27 additions and 22 deletions
+1 -1
View File
@@ -386,7 +386,7 @@ async def upgrade(evt: CommandEvent) -> Dict:
try:
await portal.upgrade_telegram_chat(evt.sender)
return await evt.reply(f"Group upgraded to supergroup. New ID: {portal.tgid}")
return await evt.reply(f"Group upgraded to supergroup. New ID: -100{portal.tgid}")
except ChatAdminRequiredError:
return await evt.reply("You don't have the permission to upgrade this group.")
except ValueError as e: