Class: TD::Types::InputMessageContent::Poll
- Inherits:
-
TD::Types::InputMessageContent
- Object
- Dry::Struct
- Base
- TD::Types::InputMessageContent
- TD::Types::InputMessageContent::Poll
- Defined in:
- lib/tdlib/types/input_message_content/poll.rb
Overview
A message with a poll. Polls can't be sent to private or secret chats.
Instance Attribute Summary collapse
-
#options ⇒ Array<String>
List of poll answer options, 2-10 strings 1-100 characters each.
-
#question ⇒ String
Poll question, 1-255 characters.
Method Summary
Methods inherited from Base
Instance Attribute Details
#options ⇒ Array<String>
List of poll answer options, 2-10 strings 1-100 characters each.
7 8 9 |
# File 'lib/tdlib/types/input_message_content/poll.rb', line 7 def @options end |
#question ⇒ String
Poll question, 1-255 characters.
7 8 9 |
# File 'lib/tdlib/types/input_message_content/poll.rb', line 7 def question @question end |