A
A
Anastasia2021-07-09 20:28:13
PHP
Anastasia, 2021-07-09 20:28:13

How to get telegram bot voice message?

Hello. I sent a voice message to the bot, the telegram sent me an array to the server, where there is:

file_id
file_unique_id
duration
mime_type
file_size

I tried to do something like this,
https://api.telegram.org/file/$token/$file_id
but I got the following response:
{"ok":false,"error_code":404,"description":"Not Found"}

And what am I doing wrong? Despite the fact that the documentation does not describe this moment at all.

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