Class: Telegram::Bot::Types::PollOptionDeleted

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

#option_persistent_idString (readonly)

Returns the value of attribute option_persistent_id.

Returns:

  • (String)


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

def option_persistent_id
  @option_persistent_id
end

#option_textString (readonly)

Returns the value of attribute option_text.

Returns:

  • (String)


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

def option_text
  @option_text
end

#option_text_entitiesArray[MessageEntity]? (readonly)

Returns the value of attribute option_text_entities.

Returns:



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

def option_text_entities
  @option_text_entities
end

#poll_messagemaybe_inaccessible_message? (readonly)

Returns the value of attribute poll_message.

Returns:

  • (maybe_inaccessible_message, nil)


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

def poll_message
  @poll_message
end

Class Method Details

.new(poll_message:, option_persistent_id:, option_text:, option_text_entities:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(poll_message:, option_persistent_id:, option_text:, option_text_entities:) ⇒ instance

    Parameters:

    • poll_message: (maybe_inaccessible_message)
    • option_persistent_id: (String)
    • option_text: (String)
    • option_text_entities: (Array[MessageEntity])

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (?poll_message: maybe_inaccessible_message, option_persistent_id: String, option_text: String, ?option_text_entities: Array[MessageEntity]) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance