Class: TD::Types::InputInlineQueryResult::AnimatedGif

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

Overview

Represents a link to an animated GIF.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#gif_durationInteger

Duration of the GIF, in seconds.

Returns:

  • (Integer)

    the current value of gif_duration



16
17
18
# File 'lib/tdlib/types/input_inline_query_result/animated_gif.rb', line 16

def gif_duration
  @gif_duration
end

#gif_heightInteger

Height of the GIF.

Returns:

  • (Integer)

    the current value of gif_height



16
17
18
# File 'lib/tdlib/types/input_inline_query_result/animated_gif.rb', line 16

def gif_height
  @gif_height
end

#gif_urlString

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

Returns:

  • (String)

    the current value of gif_url



16
17
18
# File 'lib/tdlib/types/input_inline_query_result/animated_gif.rb', line 16

def gif_url
  @gif_url
end

#gif_widthInteger

Width of the GIF.

Returns:

  • (Integer)

    the current value of gif_width



16
17
18
# File 'lib/tdlib/types/input_inline_query_result/animated_gif.rb', line 16

def gif_width
  @gif_width
end

#idString

Unique identifier of the query result.

Returns:

  • (String)

    the current value of id



16
17
18
# File 'lib/tdlib/types/input_inline_query_result/animated_gif.rb', line 16

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, InputMessageLocation, InputMessageVenue or InputMessageContact.

Returns:



16
17
18
# File 'lib/tdlib/types/input_inline_query_result/animated_gif.rb', line 16

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:



16
17
18
# File 'lib/tdlib/types/input_inline_query_result/animated_gif.rb', line 16

def reply_markup
  @reply_markup
end

#thumbnail_urlString

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

Returns:

  • (String)

    the current value of thumbnail_url



16
17
18
# File 'lib/tdlib/types/input_inline_query_result/animated_gif.rb', line 16

def thumbnail_url
  @thumbnail_url
end

#titleString

Title of the query result.

Returns:

  • (String)

    the current value of title



16
17
18
# File 'lib/tdlib/types/input_inline_query_result/animated_gif.rb', line 16

def title
  @title
end