Compare commits
2 Commits
de1883d17f
...
fc980aa59a
Author | SHA1 | Date | |
---|---|---|---|
fc980aa59a | |||
e9844460d5 |
4
bot.py
4
bot.py
@ -11,13 +11,13 @@ 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()})
|
||||||
|
|
||||||
await bot.send_photo(types.input_file('PYTHON_BOT/ya-pidoras.jpg'))
|
await bot.send_photo(types.input_file('PYTHON_BOT/ya-pidoras.jpg'))
|
||||||
|
#функция вызова пикчи
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
executor.start_polling(dp, skip_updates=True)
|
executor.start_polling(dp, skip_updates=True)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user