Class: Telegram::Bot::Types::InlineQueryResultGif

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/inline_query_result_gif.rbs

Instance Attribute Summary collapse

Attributes inherited from Base

#attributes

Class Method Summary collapse

Methods included from Compactable

#to_compact_hash, #to_json

Methods included from PatternMatching

#deconstruct_keys

Instance Attribute Details

#captionString? (readonly)

Returns the value of attribute caption.

Returns:

  • (String, nil)


17
18
19
# File 'sig/telegram/bot/types/inline_query_result_gif.rbs', line 17

def caption
  @caption
end

#caption_entitiesArray[MessageEntity]? (readonly)

Returns the value of attribute caption_entities.

Returns:



19
20
21
# File 'sig/telegram/bot/types/inline_query_result_gif.rbs', line 19

def caption_entities
  @caption_entities
end

#gif_durationInteger? (readonly)

Returns the value of attribute gif_duration.

Returns:

  • (Integer, nil)


13
14
15
# File 'sig/telegram/bot/types/inline_query_result_gif.rbs', line 13

def gif_duration
  @gif_duration
end

#gif_heightInteger? (readonly)

Returns the value of attribute gif_height.

Returns:

  • (Integer, nil)


12
13
14
# File 'sig/telegram/bot/types/inline_query_result_gif.rbs', line 12

def gif_height
  @gif_height
end

#gif_urlString (readonly)

Returns the value of attribute gif_url.

Returns:

  • (String)


10
11
12
# File 'sig/telegram/bot/types/inline_query_result_gif.rbs', line 10

def gif_url
  @gif_url
end

#gif_widthInteger? (readonly)

Returns the value of attribute gif_width.

Returns:

  • (Integer, nil)


11
12
13
# File 'sig/telegram/bot/types/inline_query_result_gif.rbs', line 11

def gif_width
  @gif_width
end

#idString (readonly)

Returns the value of attribute id.

Returns:

  • (String)


9
10
11
# File 'sig/telegram/bot/types/inline_query_result_gif.rbs', line 9

def id
  @id
end

#input_message_contentinput_message_content? (readonly)

Returns the value of attribute input_message_content.

Returns:



22
23
24
# File 'sig/telegram/bot/types/inline_query_result_gif.rbs', line 22

def input_message_content
  @input_message_content
end

#parse_modeString? (readonly)

Returns the value of attribute parse_mode.

Returns:

  • (String, nil)


18
19
20
# File 'sig/telegram/bot/types/inline_query_result_gif.rbs', line 18

def parse_mode
  @parse_mode
end

#reply_markupInlineKeyboardMarkup? (readonly)

Returns the value of attribute reply_markup.

Returns:



21
22
23
# File 'sig/telegram/bot/types/inline_query_result_gif.rbs', line 21

def reply_markup
  @reply_markup
end

#show_caption_above_mediaBoolean? (readonly)

Returns the value of attribute show_caption_above_media.

Returns:

  • (Boolean, nil)


20
21
22
# File 'sig/telegram/bot/types/inline_query_result_gif.rbs', line 20

def show_caption_above_media
  @show_caption_above_media
end

#thumbnail_mime_typeString (readonly)

Returns the value of attribute thumbnail_mime_type.

Returns:

  • (String)


15
16
17
# File 'sig/telegram/bot/types/inline_query_result_gif.rbs', line 15

def thumbnail_mime_type
  @thumbnail_mime_type
end

#thumbnail_urlString (readonly)

Returns the value of attribute thumbnail_url.

Returns:

  • (String)


14
15
16
# File 'sig/telegram/bot/types/inline_query_result_gif.rbs', line 14

def thumbnail_url
  @thumbnail_url
end

#titleString? (readonly)

Returns the value of attribute title.

Returns:

  • (String, nil)


16
17
18
# File 'sig/telegram/bot/types/inline_query_result_gif.rbs', line 16

def title
  @title
end

#typeString (readonly)

Returns the value of attribute type.

Returns:

  • (String)


8
9
10
# File 'sig/telegram/bot/types/inline_query_result_gif.rbs', line 8

def type
  @type
end

Class Method Details

.new(type:, id:, gif_url:, gif_width:, gif_height:, gif_duration:, thumbnail_url:, thumbnail_mime_type:, title:, caption:, parse_mode:, caption_entities:, show_caption_above_media:, reply_markup:, input_message_content:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(type:, id:, gif_url:, gif_width:, gif_height:, gif_duration:, thumbnail_url:, thumbnail_mime_type:, title:, caption:, parse_mode:, caption_entities:, show_caption_above_media:, reply_markup:, input_message_content:) ⇒ instance

    Parameters:

    • type: (String)
    • id: (String)
    • gif_url: (String)
    • gif_width: (Integer)
    • gif_height: (Integer)
    • gif_duration: (Integer)
    • thumbnail_url: (String)
    • thumbnail_mime_type: (String)
    • title: (String)
    • caption: (String)
    • parse_mode: (String)
    • caption_entities: (Array[MessageEntity])
    • show_caption_above_media: (Boolean)
    • reply_markup: (InlineKeyboardMarkup)
    • input_message_content: (input_message_content)

    Returns:

    • (instance)
  • .new(attributes) ⇒ instance

    Parameters:

    • attributes (Hash[Symbol | String, untyped])

    Returns:

    • (instance)


6
7
# File 'sig/telegram/bot/types/inline_query_result_gif.rbs', line 6

def self.new: (?type: String, id: String, gif_url: String, ?gif_width: Integer, ?gif_height: Integer, ?gif_duration: Integer, thumbnail_url: String, ?thumbnail_mime_type: String, ?title: String, ?caption: String, ?parse_mode: String, ?caption_entities: Array[MessageEntity], ?show_caption_above_media: bool, ?reply_markup: InlineKeyboardMarkup, ?input_message_content: input_message_content) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance