топ пипис tets
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pavel_Duron 2022-11-15 17:45:33 +10:00
parent b310cabcbc
commit be5e1fcbd5

10
bot.py
View File

@ -105,7 +105,15 @@ async def ident(message: types.Message):
#####______________________ПИПИСА БОТ БУДЕТ ЗДЕСЬ__________________________________
@dp.message_handler(commands=["topdick"])
async def send_time(message: types.Message):
engine = create_engine('postgresql+psycopg2://postgres:postgres@postgres.vdk2ch.ru:5432/jack_bot', echo=True)
Session = sessionmaker(bind=engine)
session = Session()
Base = declarative_base()
for user_fullname, dick_size in session.query(user.user_fullname, user.dick_size).order_by(user.dick_size.desc()).limit(10).all():
await bot.send_message(message.chat.id, f'Топ пипис!\n {user_fullname}: {dick_size} см')
session.close_all()
@dp.message_handler(commands=['start'])