forked from Pavel_Durov/python_bot
test topdic2k
This commit is contained in:
parent
e167ea2bf6
commit
5610549a7f
25
bot.py
25
bot.py
@ -118,22 +118,21 @@ async def send_time(message: types.Message):
|
|||||||
Base = declarative_base()
|
Base = declarative_base()
|
||||||
|
|
||||||
top = session.query(user.user_fullname, user.dick_size).order_by(user.dick_size.desc()).limit(10).all()
|
top = session.query(user.user_fullname, user.dick_size).order_by(user.dick_size.desc()).limit(10).all()
|
||||||
red = '\n'.join(map(str, top))
|
delimiter = ': '
|
||||||
|
|
||||||
await bot.send_message(message.chat.id, f'{red}')
|
await bot.send_message(message.chat.id, f'<u>Топ пипис!</u>\n\
|
||||||
# {top[0]}\n\сууука
|
<b>1.</b>{delimiter.join(map(str, top[0]))}\n\
|
||||||
# {top[1]}\n\
|
<b>2.</b> {delimiter.join(map(str, top[1]))}\n\
|
||||||
# {top[2]}\n\
|
<b>3.</b>3{delimiter.join(map(str, top[2]))}\n\
|
||||||
# {top[3]}\n\
|
<b>4.</b>{delimiter.join(map(str, top[3]))}\n\
|
||||||
# {top[4]}\n\
|
<b>5.</b>{delimiter.join(map(str, top[4]))}\n\
|
||||||
# {top[5]}\n\
|
<b>6.</b>{delimiter.join(map(str, top[5]))}\n\
|
||||||
# {top[6]}\n\
|
<b>7.</b>{delimiter.join(map(str, top[6]))}\n\
|
||||||
# {top[7]}\n\
|
<b>8.</b>{delimiter.join(map(str, top[7]))}\n\
|
||||||
# {top[8]}\n\
|
<b>9.</b>{delimiter.join(map(str, top[8]))}\n\
|
||||||
# {top[9]}ff')
|
<b>10.</b>{delimiter.join(map(str, top[8]))}\n')
|
||||||
session.close_all()
|
session.close_all()
|
||||||
|
|
||||||
|
|
||||||
@dp.message_handler(commands=['start'])
|
@dp.message_handler(commands=['start'])
|
||||||
async def start_func(message: types.Message):
|
async def start_func(message: types.Message):
|
||||||
# user_id = message.from_user.id
|
# user_id = message.from_user.id
|
||||||
|
Loading…
Reference in New Issue
Block a user