Class: Telegram::Bot::Types::PollAnswer

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/poll_answer.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_idsArray[Integer] (readonly)

Returns the value of attribute option_ids.

Returns:

  • (Array[Integer])


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

def option_ids
  @option_ids
end

#option_persistent_idsArray[String] (readonly)

Returns the value of attribute option_persistent_ids.

Returns:

  • (Array[String])


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

def option_persistent_ids
  @option_persistent_ids
end

#poll_idString (readonly)

Returns the value of attribute poll_id.

Returns:

  • (String)


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

def poll_id
  @poll_id
end

#userUser? (readonly)

Returns the value of attribute user.

Returns:



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

def user
  @user
end

#voter_chatChat? (readonly)

Returns the value of attribute voter_chat.

Returns:



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

def voter_chat
  @voter_chat
end

Class Method Details

.new(poll_id:, voter_chat:, user:, option_ids:, option_persistent_ids:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(poll_id:, voter_chat:, user:, option_ids:, option_persistent_ids:) ⇒ instance

    Parameters:

    • poll_id: (String)
    • voter_chat: (Chat)
    • user: (User)
    • option_ids: (Array[Integer])
    • option_persistent_ids: (Array[String])

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (poll_id: String, ?voter_chat: Chat, ?user: User, option_ids: Array[Integer], option_persistent_ids: Array[String]) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance