Telegram Bot API

Use this method to copy messages of any kind. Service messages, paid media messages, giveaway messages, giveaway winners messages, and invoice messages can't be copied. A quiz poll can be copied only if the value of the field correct_option_id is known to the bot. The method is analogous to the method forwardMessage, but the copied message doesn't have a link to the original message. Returns the MessageId of the sent message on success.

post/copyMessage

Request

  • Base URL: https://api.telegram.org/bot<bot_token>
  • URL: https://api.telegram.org/bot<bot_token>/copyMessage
  • Auth: none declared

Request body

message_thread_idinteger

Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only

direct_messages_topic_idinteger

Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat

message_idinteger required

Message identifier in the chat specified in from_chat_id

video_start_timestampinteger

New start timestamp for the copied video in the message

captionstring

New caption for media, 0-1024 characters after entities parsing. If not specified, the original caption is kept.

parse_modestring

Mode for parsing entities in the new caption. See formatting options for more details.

show_caption_above_mediaboolean

Pass True, if the caption must be shown above the message media. Ignored if a new caption isn't specified.

disable_notificationboolean

Sends the message silently. Users will receive a notification with no sound.

protect_contentboolean

Protects the contents of the sent message from forwarding and saving

allow_paid_broadcastboolean

Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance.

message_effect_idstring

Unique identifier of the message effect to be added to the message; only available when copying to private chats

Response

Telegram API response

oktrue required

Changes

    • info

      added the new optional request property /////// (media type: application/json)

    • info

      added the new optional request property /////// (media type: application/x-www-form-urlencoded)

    • info

      added the new optional request property //////////// (media type: application/json)

    • info

      added the new optional request property //////////// (media type: application/x-www-form-urlencoded)