From 5610549a7f0d3cb22fd923098d9180b82ece7beb Mon Sep 17 00:00:00 2001 From: Pavel_Duron Date: Thu, 24 Nov 2022 18:31:18 +1000 Subject: [PATCH] test topdic2k --- bot.py | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/bot.py b/bot.py index 989348c..67acb76 100644 --- a/bot.py +++ b/bot.py @@ -118,22 +118,21 @@ async def send_time(message: types.Message): Base = declarative_base() 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}') -# {top[0]}\n\сууука -# {top[1]}\n\ -# {top[2]}\n\ -# {top[3]}\n\ -# {top[4]}\n\ -# {top[5]}\n\ -# {top[6]}\n\ -# {top[7]}\n\ -# {top[8]}\n\ -# {top[9]}ff') + await bot.send_message(message.chat.id, f'Топ пипис!\n\ +1.{delimiter.join(map(str, top[0]))}\n\ +2. {delimiter.join(map(str, top[1]))}\n\ +3.3{delimiter.join(map(str, top[2]))}\n\ +4.{delimiter.join(map(str, top[3]))}\n\ +5.{delimiter.join(map(str, top[4]))}\n\ +6.{delimiter.join(map(str, top[5]))}\n\ +7.{delimiter.join(map(str, top[6]))}\n\ +8.{delimiter.join(map(str, top[7]))}\n\ +9.{delimiter.join(map(str, top[8]))}\n\ +10.{delimiter.join(map(str, top[8]))}\n') session.close_all() - @dp.message_handler(commands=['start']) async def start_func(message: types.Message): # user_id = message.from_user.id