Use this method to copy messages of any kind
Use this method to copy messages of any kind. The method is analogous to the method forwardMessages, but the copied message doesn't have a link to the original message. Returns the MessageId of the sent message on success.
Body
Required
-
Message identifier in the chat specified in from_chat_id
-
New caption for media, 0-1024 characters after entities parsing. If not specified, the original caption is kept
-
Mode for parsing entities in the new caption. See formatting options for more details.
-
This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc.
-
Sends the message silently. Users will receive a notification with no sound.
-
If the message is a reply, ID of the original message
-
Pass True, if the message should be sent even if the specified replied-to message is not found
curl \
-X POST https://api.telegram.org/bot123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11/copyMessage \
-H "Content-Type: application/json" \
-d '{"chat_id":42,"from_chat_id":42,"message_id":42,"caption":"string","parse_mode":"string","caption_entities":[{"type":"mention","offset":42,"length":42,"url":"string","user":{"id":42,"is_bot":true,"first_name":"string","last_name":"string","username":"string","language_code":"string","can_join_groups":true,"can_read_all_group_messages":true,"supports_inline_queries":true},"language":"string"}],"disable_notification":true,"reply_to_message_id":42,"allow_sending_without_reply":true,"reply_markup":{"":[[{}]]}}'
{
"chat_id": 42,
"from_chat_id": 42,
"message_id": 42,
"caption": "string",
"parse_mode": "string",
"caption_entities": [
{
"type": "mention",
"offset": 42,
"length": 42,
"url": "string",
"user": {
"id": 42,
"is_bot": true,
"first_name": "string",
"last_name": "string",
"username": "string",
"language_code": "string",
"can_join_groups": true,
"can_read_all_group_messages": true,
"supports_inline_queries": true
},
"language": "string"
}
],
"disable_notification": true,
"reply_to_message_id": 42,
"allow_sending_without_reply": true,
"reply_markup": {
"": [
[
{}
]
]
}
}
{
"chat_id": 42,
"from_chat_id": 42,
"message_id": 42,
"caption": "string",
"parse_mode": "string",
"caption_entities": [
{
"type": "mention",
"offset": 42,
"length": 42,
"url": "string",
"user": {
"id": 42,
"is_bot": true,
"first_name": "string",
"last_name": "string",
"username": "string",
"language_code": "string",
"can_join_groups": true,
"can_read_all_group_messages": true,
"supports_inline_queries": true
},
"language": "string"
}
],
"disable_notification": true,
"reply_to_message_id": 42,
"allow_sending_without_reply": true,
"reply_markup": {
"": [
[
{}
]
]
}
}
{
"ok": false,
"error_code": 42,
"description": "string",
"parameters": {
"migrate_to_chat_id": 42,
"retry_after": 42
}
}
{
"ok": false,
"error_code": 42,
"description": "string",
"parameters": {
"migrate_to_chat_id": 42,
"retry_after": 42
}
}
{
"ok": true,
"result": {
"message_id": 42
}
}
{
"ok": true,
"result": {
"message_id": 42
}
}