This commit is contained in:
mihalin 2021-09-17 11:04:00 +03:00
parent 2e00455e2f
commit 76422d2005

View File

@ -75,6 +75,7 @@ async def receive_invite(message: types.Message):
async def receive_left(message: types.Message): async def receive_left(message: types.Message):
print("receive left")
bot = db_bot_instance.get() bot = db_bot_instance.get()
if message.left_chat_member.id == message.bot.id: if message.left_chat_member.id == message.bot.id:
chat = await bot.group_chats.filter(chat_id=message.chat.id).first() chat = await bot.group_chats.filter(chat_id=message.chat.id).first()