forked from Pavel_Durov/python_bot
change chatid in any chats
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"])
|
@dp.message_handler(commands=["topdick"])
|
||||||
async def send_topchat(message: types.Message):
|
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
|
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()
|
changechat_id.chat_id = chats
|
||||||
top.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