From 709a021c79fb4fe3ea8a3ab8f93a8e41059c8610 Mon Sep 17 00:00:00 2001 From: mihalin Date: Fri, 17 Sep 2021 11:49:48 +0300 Subject: [PATCH] update group chat name --- server/custom.py | 1 + 1 file changed, 1 insertion(+) diff --git a/server/custom.py b/server/custom.py index 5f86a35..bf59b0b 100644 --- a/server/custom.py +++ b/server/custom.py @@ -74,6 +74,7 @@ async def receive_invite(message: types.Message): chat, _ = await GroupChat.get_or_create(chat_id=message.chat.id, defaults={"name": message.chat.full_name}) chat.name = message.chat.full_name + await chat.save() if chat not in await bot.group_chats.all(): await bot.group_chats.add(chat) await bot.save()