mirror of
https://github.com/civsocit/olgram.git
synced 2025-12-15 08:16:17 +00:00
update group chat name
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user