forked from Pavel_Durov/python_bot
fix session
This commit is contained in:
parent
89ccbf1810
commit
5b668f1a6d
4
bot.py
4
bot.py
@ -161,7 +161,7 @@ async def send_time(message: types.Message):
|
|||||||
|
|
||||||
top_chat = session.query(user.user_fullname, user.dick_size).order_by(user.dick_size.desc()).limit(10).all()
|
top_chat = session.query(user.user_fullname, user.dick_size).order_by(user.dick_size.desc()).limit(10).all()
|
||||||
delimiter = ': '
|
delimiter = ': '
|
||||||
|
session.close()
|
||||||
await bot.send_message(message.chat.id, f'🏆Топ 10 пипис в мире🏆\n\n\
|
await bot.send_message(message.chat.id, f'🏆Топ 10 пипис в мире🏆\n\n\
|
||||||
1. {delimiter.join(map(str, top_chat[0]))}\n\
|
1. {delimiter.join(map(str, top_chat[0]))}\n\
|
||||||
2. {delimiter.join(map(str, top_chat[1]))}\n\
|
2. {delimiter.join(map(str, top_chat[1]))}\n\
|
||||||
@ -173,7 +173,7 @@ async def send_time(message: types.Message):
|
|||||||
8. {delimiter.join(map(str, top_chat[7]))}\n\
|
8. {delimiter.join(map(str, top_chat[7]))}\n\
|
||||||
9. {delimiter.join(map(str, top_chat[8]))}\n\
|
9. {delimiter.join(map(str, top_chat[8]))}\n\
|
||||||
10. {delimiter.join(map(str, top_chat[9]))}\n')
|
10. {delimiter.join(map(str, top_chat[9]))}\n')
|
||||||
session.close()
|
|
||||||
|
|
||||||
@dp.message_handler(commands=['start'])
|
@dp.message_handler(commands=['start'])
|
||||||
async def start_func(message: types.Message):
|
async def start_func(message: types.Message):
|
||||||
|
Loading…
Reference in New Issue
Block a user