change chatid in any chats
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
25760e4c60
commit
103f6222fa
7
bot.py
7
bot.py
@ -112,10 +112,13 @@ chat_id = message.chat.id)
|
||||
|
||||
@dp.message_handler(commands=["topdick"])
|
||||
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
|
||||
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.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, то:'''
|
||||
|
Loading…
Reference in New Issue
Block a user