Class: TD::Types::InputInlineQueryResult::Animation

Inherits:
TD::Types::InputInlineQueryResult show all
Defined in:
lib/tdlib/types/input_inline_query_result/animation.rb

Overview

Represents a link to an animated GIF or an animated (i.e. without sound) H.264/MPEG-4 AVC video.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#idTD::Types::String

Unique identifier of the query result.

Returns:

  • (TD::Types::String)

    the current value of id



21
22
23
# File 'lib/tdlib/types/input_inline_query_result/animation.rb', line 21

def id
  @id
end

#input_message_contentTD::Types::InputMessageContent

The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageAnimation, inputMessageInvoice, inputMessageLocation, TD::Types::InputMessageContent::Venue or inputMessageContact.

Returns:



21
22
23
# File 'lib/tdlib/types/input_inline_query_result/animation.rb', line 21

def input_message_content
  @input_message_content
end

#reply_markupTD::Types::ReplyMarkup

The message reply markup. Must be of type ReplyMarkup::InlineKeyboard or null.

Returns:



21
22
23
# File 'lib/tdlib/types/input_inline_query_result/animation.rb', line 21

def reply_markup
  @reply_markup
end

#thumbnail_mime_typeTD::Types::String

MIME type of the video thumbnail. If non-empty, must be one of “image/jpeg”, “image/gif” and “video/mp4”.

Returns:

  • (TD::Types::String)

    the current value of thumbnail_mime_type



21
22
23
# File 'lib/tdlib/types/input_inline_query_result/animation.rb', line 21

def thumbnail_mime_type
  @thumbnail_mime_type
end

#thumbnail_urlTD::Types::String

URL of the result thumbnail (JPEG, GIF, or MPEG4), if it exists.

Returns:

  • (TD::Types::String)

    the current value of thumbnail_url



21
22
23
# File 'lib/tdlib/types/input_inline_query_result/animation.rb', line 21

def thumbnail_url
  @thumbnail_url
end

#titleTD::Types::String

Title of the query result.

Returns:

  • (TD::Types::String)

    the current value of title



21
22
23
# File 'lib/tdlib/types/input_inline_query_result/animation.rb', line 21

def title
  @title
end

#video_durationInteger

Duration of the video, in seconds.

Returns:

  • (Integer)

    the current value of video_duration



21
22
23
# File 'lib/tdlib/types/input_inline_query_result/animation.rb', line 21

def video_duration
  @video_duration
end

#video_heightInteger

Height of the video.

Returns:

  • (Integer)

    the current value of video_height



21
22
23
# File 'lib/tdlib/types/input_inline_query_result/animation.rb', line 21

def video_height
  @video_height
end

#video_mime_typeTD::Types::String

MIME type of the video file. Must be one of “image/gif” and “video/mp4”.

Returns:

  • (TD::Types::String)

    the current value of video_mime_type



21
22
23
# File 'lib/tdlib/types/input_inline_query_result/animation.rb', line 21

def video_mime_type
  @video_mime_type
end

#video_urlTD::Types::String

The URL of the video file (file size must not exceed 1MB).

Returns:

  • (TD::Types::String)

    the current value of video_url



21
22
23
# File 'lib/tdlib/types/input_inline_query_result/animation.rb', line 21

def video_url
  @video_url
end

#video_widthInteger

Width of the video.

Returns:

  • (Integer)

    the current value of video_width



21
22
23
# File 'lib/tdlib/types/input_inline_query_result/animation.rb', line 21

def video_width
  @video_width
end