Skip to content

sendForwarded

Sahri Riza Umami edited this page Jun 22, 2018 · 3 revisions

Send a forwarded message.

sendForwarded(chat_id, reply_to_message_id, from_chat_id, message_id, in_game_share, disable_notification, from_background, reply_markup, callback, data)
Field Type Description
chat_id int53 Target chat.
reply_to_message_id int53 Identifier of the message to reply to.
from_chat_id int53 Chat identifier of the message to forward
message_id int53 Identifier of the message to forward .
in_game_share Bool True, if a game message should be shared within a launched game; applies only to game messages.
disable_notification Bool Pass true to disable notification for the message. Not supported in secret chats.
from_background Bool Pass true if the message is sent from the background.
reply_markup ReplyMarkup Markup for replying to the message; for bots only.

Example

  • Forward message number 212 from chat 1122334455 into chat 1234567890.

    sendForwarded(1234567890, 0, 1122334455, 212)

    Response:

    {
      ["@type"] = "message",
      author_signature = "",
      can_be_deleted_for_all_users = true,
      can_be_deleted_only_for_self = false,
      can_be_edited = false,
      can_be_forwarded = true,
      chat_id = "1234567890",
      contains_unread_mention = false,
      content = {
        ["@type"] = "messageText",
        text = {
          ["@type"] = "formattedText",
          entities = {},
          text = "test"
        }
      },
      date = 1529659973,
      edit_date = 0,
      forward_info = {
        ["@type"] = "messageForwardedFromUser",
        date = 1529659958,
        forwarded_from_chat_id = 0,
        forwarded_from_message_id = 0,
        sender_user_id = 99999999
      },
      id = "16075718665",
      is_channel_post = false,
      is_outgoing = true,
      media_album_id = "0",
      reply_to_message_id = 0,
      sender_user_id = 99999999,
      sending_state = {
        ["@type"] = "messageSendingStatePending"
      },
      ttl = 0,
      ttl_expires_in = 0,
      via_bot_user_id = 0,
      views = 0
    }

Frequently Asked Questions
The Functions

Clone this wiki locally