mirror of
https://github.com/civsocit/olgram.git
synced 2023-07-22 01:29:12 +03:00
update group chat name
This commit is contained in:
parent
9f32edd1be
commit
709a021c79
@ -74,6 +74,7 @@ async def receive_invite(message: types.Message):
|
|||||||
chat, _ = await GroupChat.get_or_create(chat_id=message.chat.id,
|
chat, _ = await GroupChat.get_or_create(chat_id=message.chat.id,
|
||||||
defaults={"name": message.chat.full_name})
|
defaults={"name": message.chat.full_name})
|
||||||
chat.name = message.chat.full_name
|
chat.name = message.chat.full_name
|
||||||
|
await chat.save()
|
||||||
if chat not in await bot.group_chats.all():
|
if chat not in await bot.group_chats.all():
|
||||||
await bot.group_chats.add(chat)
|
await bot.group_chats.add(chat)
|
||||||
await bot.save()
|
await bot.save()
|
||||||
|
Loading…
Reference in New Issue
Block a user