Class: Telegram::Bot::Types::InputMediaPhoto

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/input_media_photo.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)


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

def caption
  @caption
end

#caption_entitiesArray[MessageEntity]? (readonly)

Returns the value of attribute caption_entities.

Returns:



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

def caption_entities
  @caption_entities
end

#has_spoilerBoolean? (readonly)

Returns the value of attribute has_spoiler.

Returns:

  • (Boolean, nil)


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

def has_spoiler
  @has_spoiler
end

#mediaString (readonly)

Returns the value of attribute media.

Returns:

  • (String)


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

def media
  @media
end

#parse_modeString? (readonly)

Returns the value of attribute parse_mode.

Returns:

  • (String, nil)


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

def parse_mode
  @parse_mode
end

#show_caption_above_mediaBoolean? (readonly)

Returns the value of attribute show_caption_above_media.

Returns:

  • (Boolean, nil)


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

def show_caption_above_media
  @show_caption_above_media
end

#typeString (readonly)

Returns the value of attribute type.

Returns:

  • (String)


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

def type
  @type
end

Class Method Details

.new(type:, media:, caption:, parse_mode:, caption_entities:, show_caption_above_media:, has_spoiler:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(type:, media:, caption:, parse_mode:, caption_entities:, show_caption_above_media:, has_spoiler:) ⇒ instance

    Parameters:

    • type: (String)
    • media: (String)
    • caption: (String)
    • parse_mode: (String)
    • caption_entities: (Array[MessageEntity])
    • show_caption_above_media: (Boolean)
    • has_spoiler: (Boolean)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (?type: String, media: String, ?caption: String, ?parse_mode: String, ?caption_entities: Array[MessageEntity], ?show_caption_above_media: bool, ?has_spoiler: bool) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance