добавил картинку ссылкой
This commit is contained in:
parent
2b98616ad1
commit
968e60c6a3
7
bot.py
7
bot.py
@ -17,12 +17,11 @@ async def start_func(message: types.Message):
|
||||
user_id = message.from_user.id
|
||||
user_full_name = message.from_user.full_name
|
||||
logging.INFO(f'{user_id=} {user_full_name=}', {time.asctime()})
|
||||
await message('hello')
|
||||
await message.reply('hello')
|
||||
|
||||
@dp.message_handler(commands=['photo'])
|
||||
async def photo(message: types.Message):
|
||||
lion = FSInputFile("ya-pidoras.jpg")
|
||||
await bot.send_photo(lion)
|
||||
async def send_image(message: types.Message):
|
||||
await bot.send_photo(message.chat.id, photo='http://git.vdk2ch.ru:3000/Pavel_Durov/python_bot/raw/branch/main/ya-pidoras.jpg')
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user