Black Friday: 20% off

Telegram errors

MESSAGE_TOO_LONG and other message content errors

Telegram refused the content of the message: its length, its formatting or its media.

Based only on Telegram's official documentation, checked on November 25, 2026.

The errors

What it means

Media captions are capped at 1,024 characters by default and 4,096 with Telegram Premium (UTF-8 length, in Telegram's documented client defaults).

Source: Client configuration

For bots, the Bot API accepts "1-4096 characters after entities parsing" of text per message.

Source: Bot API: sendMessage

FILE_REFERENCE_EXPIRED: "A file reference may expire, in which case it cannot be used in outgoing constructors: it must be refreshed by refetching the message, story, etc where the media last appeared."

Source: File references

What to do

  1. 1

    MESSAGE_TOO_LONG or MEDIA_CAPTION_TOO_LONG: shorten the text or the caption.

    Source: Client configuration
  2. 2

    ENTITIES_TOO_LONG: use less formatting in the message (styled entities such as bold text, links and mentions).

    Source: messages.sendMessage
  3. 3

    FILE_REFERENCE_EXPIRED: fetch again the message or story where the media last appeared, then repeat the request.

    Source: File references

Official sources

Related errors

All Telegram errors

Spend less time on errors

TeleBoost shows each account's status and why a send failed, in plain words, across all your Telegram accounts.