Class: TD::Types::PushMessageContent::Poll

Inherits:
TD::Types::PushMessageContent show all
Defined in:
lib/tdlib/types/push_message_content/poll.rb

Overview

A message with a poll.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#is_pinnedBoolean

True, if the message is a pinned message with the specified content.

Returns:

  • (Boolean)

    the current value of is_pinned



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

def is_pinned
  @is_pinned
end

#is_regularBoolean

True, if the poll is regular and not in quiz mode.

Returns:

  • (Boolean)

    the current value of is_regular



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

def is_regular
  @is_regular
end

#questionTD::Types::String

Poll question.

Returns:

  • (TD::Types::String)

    the current value of question



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

def question
  @question
end