Sha256: 28826aaa6454e3fce86cf5aba86c9762c5307217d000ec6e96f27ca578cf3397

Contents?: true

Size: 432 Bytes

Versions: 2

Compression:

Stored size: 432 Bytes

Contents

module TD::Types
  # A message with a poll.
  # Polls can't be sent to private or secret chats.
  #
  # @attr question [String] Poll question, 1-255 characters.
  # @attr options [Array<String>] List of poll answer options, 2-10 strings 1-100 characters each.
  class InputMessageContent::Poll < InputMessageContent
    attribute :question, TD::Types::String
    attribute :options, TD::Types::Array.of(TD::Types::String)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tdlib-ruby-2.2.0 lib/tdlib/types/input_message_content/poll.rb
tdlib-ruby-2.1.0 lib/tdlib/types/input_message_content/poll.rb