forked from Pavel_Durov/python_bot
change chatid in any chats
This commit is contained in:
parent
25760e4c60
commit
103f6222fa
9
bot.py
9
bot.py
@ -112,10 +112,13 @@ chat_id = message.chat.id)
|
|||||||
|
|
||||||
@dp.message_handler(commands=["topdick"])
|
@dp.message_handler(commands=["topdick"])
|
||||||
async def send_topchat(message: types.Message):
|
async def send_topchat(message: types.Message):
|
||||||
chats = message.chat.id
|
changechat_id = session.query(user).filter(user.user_id == message.from_user.id).first()
|
||||||
top = session.query(user.user_fullname, user.dick_size).order_by(user.dick_size.desc()).filter(user.chat_id == chats).limit(10).all()
|
chats = message.chat.id
|
||||||
top.chat_id = chats
|
changechat_id.chat_id = chats
|
||||||
session.commit()
|
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 = ': '
|
delimiter = ': '
|
||||||
|
|
||||||
# проверка на длину списка, если меньше limit, то:'''
|
# проверка на длину списка, если меньше limit, то:'''
|
||||||
|
Loading…
Reference in New Issue
Block a user