Skip to content

copyMessage

Copy a message from one chat to another.

Request

POST /:token/copymessage

Parameters

ParameterTypeRequiredDescription
chat_idInteger/StringYesUnique identifier for the target chat or username
from_chat_idInteger/StringYesUnique identifier for the source chat or username
message_idIntegerYesIdentifier of the message to copy
captionStringNoNew caption for the message
parse_modeStringNoParse mode for the caption (e.g. Markdown, HTML)
reply_markupObjectNoCustom reply markup

Response

Returns a MessageId object array on success.

json
{
  "ok": true,
  "result": [
    {
      "message_id": 12345
    }
  ]
}

Error Codes

CodeDescription
400Bad request parameters
401Invalid token
403Bot does not have permission to perform this action
404Source message does not exist