Class: TD::Types::InputMessageContent::Poll

Inherits:
TD::Types::InputMessageContent show all
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

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#optionsArray<String>

List of poll answer options, 2-10 strings 1-100 characters each.

Returns:

  • (Array<String>)

    the current value of options



7
8
9
# File 'lib/tdlib/types/input_message_content/poll.rb', line 7

def options
  @options
end

#questionString

Poll question, 1-255 characters.

Returns:

  • (String)

    the current value of question



7
8
9
# File 'lib/tdlib/types/input_message_content/poll.rb', line 7

def question
  @question
end