D
D
DeityLamb2021-07-16 21:49:58
API
DeityLamb, 2021-07-16 21:49:58

How to get uncompressed image in bot api telegram?

Node-telegram-bot-api library I receive
data by long-polling
I send a non -jackass photo.
Comes his id.
The method is bot.getFile(data.file_id);getting the path to the file.
Substitute data for url https://api.telegram.org/file/bot{my token}/{path to file}
Link to jackal photo.
How can I get a full size photo?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DeityLamb, 2021-07-16
@DeityLamb

Telegram sends an array of photos with different formats. The last one is uncompressed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question