Telegram Bot API · error code

Telegram error 400: Bad Request: the message can't be copied

Permanent - do not retryHTTP 400400 Bad Request: identifiers, content and rights

Last verified against Telegram Bot API reference

What Telegram returns
Bad Request: the message can't be copied

What error 400 means

The source message exists and the bot can see it, but its type is not one Telegram allows to be copied. The Bot API reference for copyMessage states it plainly: service messages, paid media messages, giveaway messages, giveaway winners messages and invoice messages can't be copied, and a quiz poll can be copied only if the bot knows its correct answer.

Service messages are the usual surprise. A "user joined", "pinned a message", "chat photo changed" or forum-topic event arrives as a Message object with a message_id, so generic relay code that copies every incoming message will eventually try to copy one of them. The same applies to a quiz the bot did not create itself: without correct_option_ids it is not copyable.

The description comes from TDLib, which the Bot API server is built on; the server lowercases the first letter, hence "the message" rather than "The message". This is permanent for that message, so retrying will not help.

What it looks like

{"ok":false,"error_code":400,"description":"Bad Request: the message can't be copied"}

Why it happens

  • The message is a service message such as a member join, pin, title change or topic event.
  • The message is an invoice, a giveaway, a giveaway result, or contains paid media.
  • The message is a quiz poll sent by someone else, so the bot does not know the correct option.
  • A relay handler copies every update type without filtering content first.

How to fix Telegram error 400

  1. 1Inspect the update before copying and skip messages that carry service fields (for example new_chat_members or pinned_message).
  2. 2For invoices and giveaways, send your own summary text instead of a copy.
  3. 3Use forwardMessage where attribution is acceptable and the chat is not protected.
  4. 4Log the content type of failures so you can see which kinds of messages reach the copy path.

How to stop it recurring

Whitelist copyable content (text, photos, videos, documents, voice, stickers and so on) rather than trying to blacklist exceptions. Relay pipelines that filter by type up front never hit this error and do not waste requests against the rate limits.

Official reference: Telegram Bot API reference. See all Telegram error codes or the Telegram limits and quotas.

Related codes

Error 400 - quick answers

What does Telegram error 400 mean?

The source message exists and the bot can see it, but its type is not one Telegram allows to be copied. The Bot API reference for copyMessage states it plainly: service messages, paid media messages, giveaway messages, giveaway winners messages and invoice messages can't be copied, and a quiz poll can be copied only if the bot knows its correct answer. Service messages are the usual surprise.

How do I fix Telegram error 400?

1. Inspect the update before copying and skip messages that carry service fields (for example new_chat_members or pinned_message ). 2. For invoices and giveaways, send your own summary text instead of a copy. 3. Use forwardMessage where attribution is acceptable and the chat is not protected. 4. Log the content type of failures so you can see which kinds of messages reach the copy path.

Should I retry after error 400?

No. Retrying the same request produces the same error; the condition has to be fixed first. Treat it as a permanent failure for that message and surface it, rather than looping.

Stop debugging Telegram by hand

Connect the channel through Conferbot: tokens, webhooks and retries are handled, failures show as readable status.