From b310cabcbc7521ea6e47160c1530ccd44fb0ab8d Mon Sep 17 00:00:00 2001 From: Pavel_Duron Date: Tue, 15 Nov 2022 15:39:30 +1000 Subject: [PATCH] add username --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index f74fb12..c8933f1 100644 --- a/bot.py +++ b/bot.py @@ -79,7 +79,7 @@ async def ident(message: types.Message): a.dick_size = (a.dick_size + numb) a.datetimes = datetime.datetime.now() session.commit() #обновляет запись - await bot.send_message(message.chat.id, f'{message.from_user.full_name}, ваш писюн {size_change}\ + await bot.send_message(message.chat.id, f'@{message.from_user.username}, ваш писюн {size_change}\ теперь он равен {a.dick_size} см! ') session.close_all() @@ -87,7 +87,7 @@ async def ident(message: types.Message): int_table = user(user_id = message.from_user.id, user_fullname = message.from_user.full_name, dick_size = numb, datetimes = datetime.datetime.now()) session.add(int_table) session.commit() - await bot.send_message(message.chat.id, f'{message.from_user.username}, ваш писюн {size_change}\ + await bot.send_message(message.chat.id, f'@{message.from_user.username}, ваш писюн {size_change}\ теперь он равен {int_table.dick_size} см!') session.close_all()