change chatid in any chats

This commit is contained in:
Pavel_Duron 2022-12-02 23:13:45 +10:00
parent 25760e4c60
commit 103f6222fa

9
bot.py
View File

@ -112,10 +112,13 @@ chat_id = message.chat.id)
@dp.message_handler(commands=["topdick"])
async def send_topchat(message: types.Message):
chats = message.chat.id
top = session.query(user.user_fullname, user.dick_size).order_by(user.dick_size.desc()).filter(user.chat_id == chats).limit(10).all()
top.chat_id = chats
changechat_id = session.query(user).filter(user.user_id == message.from_user.id).first()
chats = message.chat.id
changechat_id.chat_id = chats
session.commit()
top = session.query(user.user_fullname, user.dick_size).order_by(user.dick_size.desc()).filter(user.chat_id == chats).limit(10).all()
delimiter = ': '
# проверка на длину списка, если меньше limit, то:'''