skip to Main Content

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?

2

Answers


  1. as you can read in this link:

    Can I count on file_ids to be persistent?

    For the moment, file_ids for your bot’s outgoing files may be recycled
    after several thousand files have been sent. This may be changed in
    the future. Inbound file_ids can be treated as persistent.

    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 save file_id instead of that.

    Login or Signup to reply.
  2. Telegram updated the FAQ

    Can I count on file_ids to be persistent?

    Yes, file_ids can be treated as persistent.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search