forked from Pavel_Durov/python_bot
чиним
This commit is contained in:
parent
b03c7d54d0
commit
10c3a3a3a9
2
bot.py
2
bot.py
@ -11,7 +11,7 @@ bot = Bot(token=API_TOKEN)
|
|||||||
dp = Dispatcher(bot)
|
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()})
|
||||||
|
Loading…
Reference in New Issue
Block a user