Class: TD::Types::KeyboardButtonType::RequestPoll

Inherits:
TD::Types::KeyboardButtonType show all
Defined in:
lib/tdlib/types/keyboard_button_type/request_poll.rb

Overview

A button that allows the user to create and send a poll when pressed; available only in private chats.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#force_quizBoolean

If true, only polls in quiz mode must be allowed to create.

Returns:

  • (Boolean)

    the current value of force_quiz



6
7
8
# File 'lib/tdlib/types/keyboard_button_type/request_poll.rb', line 6

def force_quiz
  @force_quiz
end

#force_regularBoolean

If true, only regular polls must be allowed to create.

Returns:

  • (Boolean)

    the current value of force_regular



6
7
8
# File 'lib/tdlib/types/keyboard_button_type/request_poll.rb', line 6

def force_regular
  @force_regular
end