add username
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pavel_Duron 2022-11-15 15:39:30 +10:00
parent 206d1f4251
commit b310cabcbc

4
bot.py
View File

@ -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()