This commit is contained in:
parent
3dd2b32086
commit
5c7935e430
1
bot.py
1
bot.py
@ -114,6 +114,7 @@ chat_id = message.chat.id)
|
||||
async def send_topchat(message: types.Message):
|
||||
changechat_id = session.query(user).filter(user.user_id == message.from_user.id).first()
|
||||
chats = message.chat.id
|
||||
if changechat_id.chat_id != chats:
|
||||
changechat_id.chat_id = chats
|
||||
session.commit()
|
||||
session.close()
|
||||
|
Loading…
Reference in New Issue
Block a user