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
- MESSAGE_TOO_LONG400
“The provided message is too long.”
Source: messages.sendMessage - MEDIA_CAPTION_TOO_LONG400
“The caption is too long.”
Source: Error database (errors.json) - MESSAGE_EMPTY400
“The provided message is empty.”
Source: messages.sendMessage - ENTITIES_TOO_LONG400
“You provided too many styled message entities.”
Source: messages.sendMessage - ENTITY_BOUNDS_INVALID400
“A specified entity offset or length is invalid.”
Source: messages.sendMessage - MEDIA_EMPTY400
“The provided media object is invalid.”
Source: messages.forwardMessages - FILE_REFERENCE_EXPIRED400
“File reference expired, it must be refetched as described in the documentation.”
Source: Error database (errors.json)
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 configurationFor bots, the Bot API accepts "1-4096 characters after entities parsing" of text per message.
Source: Bot API: sendMessageFILE_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 referencesWhat to do
- 1
MESSAGE_TOO_LONG or MEDIA_CAPTION_TOO_LONG: shorten the text or the caption.
Source: Client configuration - 2
ENTITIES_TOO_LONG: use less formatting in the message (styled entities such as bold text, links and mentions).
Source: messages.sendMessage - 3
FILE_REFERENCE_EXPIRED: fetch again the message or story where the media last appeared, then repeat the request.
Source: File references
Official sources
- messages.sendMessagecore.telegram.org/method/messages.sendMessage
- messages.forwardMessagescore.telegram.org/method/messages.forwardMessages
- Error database (errors.json)core.telegram.org/api/errors.json
- Client configurationcore.telegram.org/api/config
- Bot API: sendMessagecore.telegram.org/bots/api#sendmessage
- File referencescore.telegram.org/api/file-references
Related 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.