M
M
Max Solovyov2021-08-09 14:49:08
Python
Max Solovyov, 2021-08-09 14:49:08

How to throw photos and videos in AIOGRAM without the file_id function, just specifying only the path?

The bottom line is that it is necessary to write a code that, using the aiogram library, would send from the folder with the photo video project, without using file_id, just to show the path and the bot sent

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
UberPool, 2021-08-10
@solovyev_max

A photo

photo = InputFile("files/test.png")

await bot.send_photo(chat_id=message.chat.id, photo=photo)

Video

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question