v1

latestOpenAPI 3.0.32026-07-1416059.6 KB

forwardMessage

Use this method to forward messages of any kind.

post/bot{token}/forwardMessage

Path parameters

tokenstring required

Your Bot Token

Request body

chat_idstring

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

from_chat_idstring

Unique identifier for the chat where the original message was sent (or channel username in the format @channelusername)

message_idinteger

Unique message identifier

disable_notificationboolean

Sends the message silently. iOS users will not receive a notification, Android users will receive a notification with no sound. Other apps coming soon.

Response

200

okboolean

Example response

{
  "ok": true,
  "result": {
    "message_id": 1,
    "from": {
      "id": 12345678,
      "first_name": "YourBot",
      "username": "YourBot"
    },
    "chat": {
      "id": 123456789,
      "first_name": "John",
      "last_name": "Doe",
      "username": "JohnDoe",
      "type": "private"
    },
    "date": 1459976718,
    "forward_from": {
      "id": 123456,
      "first_name": "Jason",
      "last_name": "Doe",
      "username": "JasonDoe"
    },
    "forward_date": 1459977304,
    "text": "Hey"
  }
}