I am using telegram API and create php telegram bot. For sending video file with sendVideo
method, use file_id
like BAADBAADbwADhd7gCEpUooz4V5Q1Ag
. But after some days this file_id
not worked and I have to upload this video file again. What is the problem?
Question posted in Telegram API
A comprehensive official documentation can be found here.
A comprehensive official documentation can be found here.
2
Answers
as you can read in this link:
so if you send a file from your server to telegram user (over the bot), the returned
file_id
can’t be permanent. you can forward the file from user to bot and savefile_id
instead of that.Telegram updated the FAQ