This commit is contained in:
Pavel_Duron 2022-10-30 21:23:07 +10:00
parent 3a1ea7e56c
commit 7eecab26bd

6
bot.py
View File

@ -14,9 +14,9 @@ dp = Dispatcher(bot)
@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
user_full_name = message.from_user.full_name # user_full_name = message.from_user.full_name
logging.INFO(f'{user_id=} {user_full_name=}', {time.asctime()}) # logging.INFO(f'{user_id=} {user_full_name=}', {time.asctime()})
await message.reply('hello') await message.reply('hello')
@dp.message_handler(commands=['photo']) @dp.message_handler(commands=['photo'])