Skip to content

sendVideoNote

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

Send a video note message.

sendVideoNote(chat_id, reply_to_message_id, video_note, duration, length, thumbnail, thumb_width, thumb_height, disable_notification, from_background, reply_markup)
Field Type Description
chat_id int53 Target chat.
reply_to_message_id int53 Identifier of the message to reply to.
video_note inputFile Video note to be sent.
duration int32 Duration of the video, in seconds.
length int32 Video width and height; must be positive and not greater than 640.
thumbnail inputFile Video thumbnail, if available. Sending thumbnails by file_id is currently not supported.
thumb_width int32 Thumbnail width, usually shouldn't exceed 90. Use 0 if unknown.
`thumb_height int32 Thumbnail height, usually shouldn't exceed 90. Use 0 if unknown.
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

  • Reply message 16057892864 in chat 1234567890 with a video note message using video note's remote id.

    sendVideoNote(1234567890, 16057892864, 'DQADBQADGwADGKDxVPRBAf5hTnbEAg')

    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"] = "messageVideoNote",
        is_secret = false,
        is_viewed = false,
        video_note = {
          ["@type"] = "videoNote",
          duration = 10,
          length = 240,
          thumbnail = {
            ["@type"] = "photoSize",
            height = 90,
            photo = {
              ["@type"] = "file",
              expected_size = 2655,
              id = 86,
              ["local"] = {
                ["@type"] = "localFile",
                can_be_deleted = false,
                can_be_downloaded = true,
                downloaded_prefix_size = 0,
                downloaded_size = 0,
                is_downloading_active = false,
                is_downloading_completed = false,
                path = ""
              },
              remote = {
                ["@type"] = "remoteFile",
                id = "AAQFABOocdYyAAT7stvmpjDjbYoqAAIC",
                is_uploading_active = false,
                is_uploading_completed = true,
                uploaded_size = 2655
              },
              size = 2655
            },
            type = "s",
            width = 90
          },
          video = {
            ["@type"] = "file",
            expected_size = 362425,
            id = 87,
            ["local"] = {
              ["@type"] = "localFile",
              can_be_deleted = false,
              can_be_downloaded = true,
              downloaded_prefix_size = 0,
              downloaded_size = 0,
              is_downloading_active = false,
              is_downloading_completed = false,
              path = ""
            },
            remote = {
              ["@type"] = "remoteFile",
              id = "DQADBQADGwADGKDxVPRBAf5hTnbEAg",
              is_uploading_active = false,
              is_uploading_completed = true,
              uploaded_size = 362425
            },
            size = 362425
          }
        }
      },
      date = 1529657058,
      edit_date = 0,
      id = "16057892873",
      is_channel_post = false,
      is_outgoing = true,
      media_album_id = "0",
      reply_to_message_id = "16057892864",
      sender_user_id = 13377331,
      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