Skip to content

getRepliedMessage

Sahri Riza Umami edited this page Jul 1, 2018 · 1 revision

Returns information about a message that is replied by given message.

getRepliedMessage(chat_id, message_id, callback, data)
Field Type Description
chat_id int53 Identifier of the chat the message belongs to.
message_id int53 Identifier of the message reply to which get.

Example

  • Get information about message 212 in chat 1234567890 that is replied by given message.

    getRepliedMessage(1234567890, 212)

    Response:

    {
      ["@type"] = "message",
      author_signature = "",
      can_be_deleted_for_all_users = true,
      can_be_deleted_only_for_self = false,
      can_be_edited = true,
      can_be_forwarded = true,
      chat_id = "1234567890",
      contains_unread_mention = false,
      content = {
        ["@type"] = "messageText",
        text = {
          ["@type"] = "formattedText",
          entities = {
            {
              ["@type"] = "textEntity",
              length = 5,
              offset = 0,
              type = {
                ["@type"] = "textEntityTypeBotCommand"
              }
            }
          },
          text = "/help"
        }
      },
      date = 1530422845,
      edit_date = 0,
      id = "16303259648",
      is_channel_post = false,
      is_outgoing = true,
      media_album_id = "0",
      reply_to_message_id = 0,
      sender_user_id = 999999999,
      ttl = 0,
      ttl_expires_in = 0,
      via_bot_user_id = 0,
      views = 0
    }

Frequently Asked Questions
The Functions

Clone this wiki locally