Y
Y
yischyk2020-05-05 23:45:51
PHP
yischyk, 2020-05-05 23:45:51

How to get file_path with file_id?

I have file_idpictures of a specific message, how can I get it, let file_path's look at the https://core.telegram.org/bots/api#getfile method but I don't understand how to correctly compose the request. Let's say file_id = 4547893740, what does the final request to tg api look like

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Q
qfake, 2020-05-06
@yischyk

https://api.telegram.org/bot<token>/getFile?file_id=<file_id>

here is your request first

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question