Class: Telegram::Bot::Types::PollOption
- Defined in:
- sig/telegram/bot/types/poll_option.rbs
Instance Attribute Summary collapse
-
#added_by_chat ⇒ Chat?
readonly
Returns the value of attribute added_by_chat.
-
#added_by_user ⇒ User?
readonly
Returns the value of attribute added_by_user.
-
#addition_date ⇒ Integer?
readonly
Returns the value of attribute addition_date.
-
#persistent_id ⇒ String
readonly
Returns the value of attribute persistent_id.
-
#text ⇒ String
readonly
Returns the value of attribute text.
-
#text_entities ⇒ Array[MessageEntity]?
readonly
Returns the value of attribute text_entities.
-
#voter_count ⇒ Integer
readonly
Returns the value of attribute voter_count.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#added_by_chat ⇒ Chat? (readonly)
Returns the value of attribute added_by_chat.
13 14 15 |
# File 'sig/telegram/bot/types/poll_option.rbs', line 13 def added_by_chat @added_by_chat end |
#added_by_user ⇒ User? (readonly)
Returns the value of attribute added_by_user.
12 13 14 |
# File 'sig/telegram/bot/types/poll_option.rbs', line 12 def added_by_user @added_by_user end |
#addition_date ⇒ Integer? (readonly)
Returns the value of attribute addition_date.
14 15 16 |
# File 'sig/telegram/bot/types/poll_option.rbs', line 14 def addition_date @addition_date end |
#persistent_id ⇒ String (readonly)
Returns the value of attribute persistent_id.
8 9 10 |
# File 'sig/telegram/bot/types/poll_option.rbs', line 8 def persistent_id @persistent_id end |
#text ⇒ String (readonly)
Returns the value of attribute text.
9 10 11 |
# File 'sig/telegram/bot/types/poll_option.rbs', line 9 def text @text end |
#text_entities ⇒ Array[MessageEntity]? (readonly)
Returns the value of attribute text_entities.
10 11 12 |
# File 'sig/telegram/bot/types/poll_option.rbs', line 10 def text_entities @text_entities end |
#voter_count ⇒ Integer (readonly)
Returns the value of attribute voter_count.
11 12 13 |
# File 'sig/telegram/bot/types/poll_option.rbs', line 11 def voter_count @voter_count end |
Class Method Details
.new(persistent_id:, text:, text_entities:, voter_count:, added_by_user:, added_by_chat:, addition_date:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/poll_option.rbs', line 6
def self.new: (persistent_id: String, text: String, ?text_entities: Array[MessageEntity], voter_count: Integer, ?added_by_user: User, ?added_by_chat: Chat, ?addition_date: Integer) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|