Class: Telegram::Bot::Types::Poll
- Defined in:
- sig/telegram/bot/types/poll.rbs
Instance Attribute Summary collapse
-
#allows_multiple_answers ⇒ Boolean
readonly
Returns the value of attribute allows_multiple_answers.
-
#allows_revoting ⇒ Boolean
readonly
Returns the value of attribute allows_revoting.
-
#close_date ⇒ Integer?
readonly
Returns the value of attribute close_date.
-
#correct_option_ids ⇒ Array[Integer]?
readonly
Returns the value of attribute correct_option_ids.
-
#description ⇒ String?
readonly
Returns the value of attribute description.
-
#description_entities ⇒ Array[MessageEntity]?
readonly
Returns the value of attribute description_entities.
-
#explanation ⇒ String?
readonly
Returns the value of attribute explanation.
-
#explanation_entities ⇒ Array[MessageEntity]?
readonly
Returns the value of attribute explanation_entities.
-
#id ⇒ String
readonly
Returns the value of attribute id.
-
#is_anonymous ⇒ Boolean
readonly
Returns the value of attribute is_anonymous.
-
#is_closed ⇒ Boolean
readonly
Returns the value of attribute is_closed.
-
#open_period ⇒ Integer?
readonly
Returns the value of attribute open_period.
-
#options ⇒ Array[PollOption]
readonly
Returns the value of attribute options.
-
#question ⇒ String
readonly
Returns the value of attribute question.
-
#question_entities ⇒ Array[MessageEntity]?
readonly
Returns the value of attribute question_entities.
-
#total_voter_count ⇒ Integer
readonly
Returns the value of attribute total_voter_count.
-
#type ⇒ String
readonly
Returns the value of attribute type.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#allows_multiple_answers ⇒ Boolean (readonly)
Returns the value of attribute allows_multiple_answers.
16 17 18 |
# File 'sig/telegram/bot/types/poll.rbs', line 16 def allows_multiple_answers @allows_multiple_answers end |
#allows_revoting ⇒ Boolean (readonly)
Returns the value of attribute allows_revoting.
17 18 19 |
# File 'sig/telegram/bot/types/poll.rbs', line 17 def allows_revoting @allows_revoting end |
#close_date ⇒ Integer? (readonly)
Returns the value of attribute close_date.
22 23 24 |
# File 'sig/telegram/bot/types/poll.rbs', line 22 def close_date @close_date end |
#correct_option_ids ⇒ Array[Integer]? (readonly)
Returns the value of attribute correct_option_ids.
18 19 20 |
# File 'sig/telegram/bot/types/poll.rbs', line 18 def correct_option_ids @correct_option_ids end |
#description ⇒ String? (readonly)
Returns the value of attribute description.
23 24 25 |
# File 'sig/telegram/bot/types/poll.rbs', line 23 def description @description end |
#description_entities ⇒ Array[MessageEntity]? (readonly)
Returns the value of attribute description_entities.
24 25 26 |
# File 'sig/telegram/bot/types/poll.rbs', line 24 def description_entities @description_entities end |
#explanation ⇒ String? (readonly)
Returns the value of attribute explanation.
19 20 21 |
# File 'sig/telegram/bot/types/poll.rbs', line 19 def explanation @explanation end |
#explanation_entities ⇒ Array[MessageEntity]? (readonly)
Returns the value of attribute explanation_entities.
20 21 22 |
# File 'sig/telegram/bot/types/poll.rbs', line 20 def explanation_entities @explanation_entities end |
#id ⇒ String (readonly)
Returns the value of attribute id.
8 9 10 |
# File 'sig/telegram/bot/types/poll.rbs', line 8 def id @id end |
#is_anonymous ⇒ Boolean (readonly)
Returns the value of attribute is_anonymous.
14 15 16 |
# File 'sig/telegram/bot/types/poll.rbs', line 14 def is_anonymous @is_anonymous end |
#is_closed ⇒ Boolean (readonly)
Returns the value of attribute is_closed.
13 14 15 |
# File 'sig/telegram/bot/types/poll.rbs', line 13 def is_closed @is_closed end |
#open_period ⇒ Integer? (readonly)
Returns the value of attribute open_period.
21 22 23 |
# File 'sig/telegram/bot/types/poll.rbs', line 21 def open_period @open_period end |
#options ⇒ Array[PollOption] (readonly)
Returns the value of attribute options.
11 12 13 |
# File 'sig/telegram/bot/types/poll.rbs', line 11 def @options end |
#question ⇒ String (readonly)
Returns the value of attribute question.
9 10 11 |
# File 'sig/telegram/bot/types/poll.rbs', line 9 def question @question end |
#question_entities ⇒ Array[MessageEntity]? (readonly)
Returns the value of attribute question_entities.
10 11 12 |
# File 'sig/telegram/bot/types/poll.rbs', line 10 def question_entities @question_entities end |
#total_voter_count ⇒ Integer (readonly)
Returns the value of attribute total_voter_count.
12 13 14 |
# File 'sig/telegram/bot/types/poll.rbs', line 12 def total_voter_count @total_voter_count end |
#type ⇒ String (readonly)
Returns the value of attribute type.
15 16 17 |
# File 'sig/telegram/bot/types/poll.rbs', line 15 def type @type end |
Class Method Details
.new(id:, question:, question_entities:, options:, total_voter_count:, is_closed:, is_anonymous:, type:, allows_multiple_answers:, allows_revoting:, correct_option_ids:, explanation:, explanation_entities:, open_period:, close_date:, description:, description_entities:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/poll.rbs', line 6
def self.new: (id: String, question: String, ?question_entities: Array[MessageEntity], options: Array[PollOption], total_voter_count: Integer, is_closed: bool, is_anonymous: bool, type: String, allows_multiple_answers: bool, allows_revoting: bool, ?correct_option_ids: Array[Integer], ?explanation: String, ?explanation_entities: Array[MessageEntity], ?open_period: Integer, ?close_date: Integer, ?description: String, ?description_entities: Array[MessageEntity]) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|