X
X
xxxfdd2021-12-21 14:56:23
Python
xxxfdd, 2021-12-21 14:56:23

How to send a bitmap through a telegram bot?

I get a picture from my database if I output it to text like this memory at 0x0000029C34993640 (a picture in bytea format) but when I write await bot.send_photo(message.chat.id, elem[8])(elem[8] is my picture just)
gives me an error - aiogram.utils.exceptions.BadRequest: Image_process_failed
(what could be wrong?)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question