Class: TD::Types::PushMessageContent::Poll
- Inherits:
-
TD::Types::PushMessageContent
- Object
- Dry::Struct
- Base
- TD::Types::PushMessageContent
- TD::Types::PushMessageContent::Poll
- Defined in:
- lib/tdlib/types/push_message_content/poll.rb
Overview
A message with a poll.
Instance Attribute Summary collapse
-
#is_pinned ⇒ Boolean
True, if the message is a pinned message with the specified content.
-
#is_regular ⇒ Boolean
True, if the poll is regular and not in quiz mode.
-
#question ⇒ TD::Types::String
Poll question.
Method Summary
Methods inherited from Base
Instance Attribute Details
#is_pinned ⇒ Boolean
True, if the message is a pinned message with the specified content.
7 8 9 |
# File 'lib/tdlib/types/push_message_content/poll.rb', line 7 def is_pinned @is_pinned end |
#is_regular ⇒ Boolean
True, if the poll is regular and not in quiz mode.
7 8 9 |
# File 'lib/tdlib/types/push_message_content/poll.rb', line 7 def is_regular @is_regular end |
#question ⇒ TD::Types::String
Poll question.
7 8 9 |
# File 'lib/tdlib/types/push_message_content/poll.rb', line 7 def question @question end |