Sha256: 3583253b8b95226d559212f5228e6b59198c8ffcb38eac2d1b332f45c687e64f
Contents?: true
Size: 1.23 KB
Versions: 1
Compression:
Stored size: 1.23 KB
Contents
module TD::Types # A message with a poll. # Polls can't be sent to secret chats. # Polls can be sent only to a private chat with a bot. # # @attr question [String] Poll question; 1-255 characters (up to 300 characters for bots). # @attr options [Array<String>] List of poll answer options, 2-10 strings 1-100 characters each. # @attr is_anonymous [Boolean] True, if the poll voters are anonymous. # Non-anonymous polls can't be sent or forwarded to channels. # @attr type [TD::Types::PollType] Type of the poll. # @attr open_period [Integer] Amount of time the poll will be active after creation, in seconds; for bots only. # @attr close_date [Integer] Point in time (Unix timestamp) when the poll will be automatically closed; for bots # only. # @attr is_closed [Boolean] True, if the poll needs to be sent already closed; for bots only. class InputMessageContent::Poll < InputMessageContent attribute :question, TD::Types::String attribute :options, TD::Types::Array.of(TD::Types::String) attribute :is_anonymous, TD::Types::Bool attribute :type, TD::Types::PollType attribute :open_period, TD::Types::Integer attribute :close_date, TD::Types::Integer attribute :is_closed, TD::Types::Bool end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tdlib-schema-1.7.0.1 | lib/tdlib/types/input_message_content/poll.rb |