Class: Telegram::Bot::Types::PollAnswer
- Defined in:
- sig/telegram/bot/types/poll_answer.rbs
Instance Attribute Summary collapse
-
#option_ids ⇒ Array[Integer]
readonly
Returns the value of attribute option_ids.
-
#option_persistent_ids ⇒ Array[String]
readonly
Returns the value of attribute option_persistent_ids.
-
#poll_id ⇒ String
readonly
Returns the value of attribute poll_id.
-
#user ⇒ User?
readonly
Returns the value of attribute user.
-
#voter_chat ⇒ Chat?
readonly
Returns the value of attribute voter_chat.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#option_ids ⇒ Array[Integer] (readonly)
Returns the value of attribute option_ids.
11 12 13 |
# File 'sig/telegram/bot/types/poll_answer.rbs', line 11 def option_ids @option_ids end |
#option_persistent_ids ⇒ Array[String] (readonly)
Returns the value of attribute option_persistent_ids.
12 13 14 |
# File 'sig/telegram/bot/types/poll_answer.rbs', line 12 def option_persistent_ids @option_persistent_ids end |
#poll_id ⇒ String (readonly)
Returns the value of attribute poll_id.
8 9 10 |
# File 'sig/telegram/bot/types/poll_answer.rbs', line 8 def poll_id @poll_id end |
#user ⇒ User? (readonly)
Returns the value of attribute user.
10 11 12 |
# File 'sig/telegram/bot/types/poll_answer.rbs', line 10 def user @user end |
#voter_chat ⇒ Chat? (readonly)
Returns the value of attribute voter_chat.
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
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
|