Class: TD::Types::Poll
Overview
Describes a poll.
Instance Attribute Summary collapse
-
#close_date ⇒ Integer
Point in time (Unix timestamp) when the poll will automatically be closed.
-
#id ⇒ Integer
Unique poll identifier.
-
#is_anonymous ⇒ Boolean
True, if the poll is anonymous.
-
#is_closed ⇒ Boolean
True, if the poll is closed.
-
#open_period ⇒ Integer
Amount of time the poll will be active after creation, in seconds.
-
#options ⇒ Array<TD::Types::PollOption>
List of poll answer options.
-
#question ⇒ TD::Types::FormattedText
Poll question; 1-300 characters.
-
#recent_voter_ids ⇒ Array<TD::Types::MessageSender>
Identifiers of recent voters, if the poll is non-anonymous.
-
#total_voter_count ⇒ Integer
Total number of voters, participating in the poll.
-
#type ⇒ TD::Types::PollType
Type of the poll.
Method Summary
Methods inherited from Base
Instance Attribute Details
#close_date ⇒ Integer
Point in time (Unix timestamp) when the poll will automatically be closed.
16 17 18 |
# File 'lib/tdlib/types/poll.rb', line 16 def close_date @close_date end |
#id ⇒ Integer
Unique poll identifier.
16 17 18 |
# File 'lib/tdlib/types/poll.rb', line 16 def id @id end |
#is_anonymous ⇒ Boolean
True, if the poll is anonymous.
16 17 18 |
# File 'lib/tdlib/types/poll.rb', line 16 def is_anonymous @is_anonymous end |
#is_closed ⇒ Boolean
True, if the poll is closed.
16 17 18 |
# File 'lib/tdlib/types/poll.rb', line 16 def is_closed @is_closed end |
#open_period ⇒ Integer
Amount of time the poll will be active after creation, in seconds.
16 17 18 |
# File 'lib/tdlib/types/poll.rb', line 16 def open_period @open_period end |
#options ⇒ Array<TD::Types::PollOption>
List of poll answer options.
16 17 18 |
# File 'lib/tdlib/types/poll.rb', line 16 def @options end |
#question ⇒ TD::Types::FormattedText
Poll question; 1-300 characters. Only custom emoji entities are allowed.
16 17 18 |
# File 'lib/tdlib/types/poll.rb', line 16 def question @question end |
#recent_voter_ids ⇒ Array<TD::Types::MessageSender>
Identifiers of recent voters, if the poll is non-anonymous.
16 17 18 |
# File 'lib/tdlib/types/poll.rb', line 16 def recent_voter_ids @recent_voter_ids end |
#total_voter_count ⇒ Integer
Total number of voters, participating in the poll.
16 17 18 |
# File 'lib/tdlib/types/poll.rb', line 16 def total_voter_count @total_voter_count end |
#type ⇒ TD::Types::PollType
Type of the poll.
16 17 18 |
# File 'lib/tdlib/types/poll.rb', line 16 def type @type end |