TDLib
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
messagePoll Class Referencefinal

Inherits MessageContent.

Description

A message with a poll.

Public Member Functions

 messagePoll ()
 
 messagePoll (object_ptr< poll > &&poll_, object_ptr< formattedText > &&description_, object_ptr< PollMedia > &&media_, bool can_add_option_)
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Member Functions inherited from TlObject
TlObject & operator= (const TlObject &)=delete
 
TlObject & operator= (TlObject &&)=default
 
virtual void store (TlStorerCalcLength &s) const
 
virtual void store (TlStorerUnsafe &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Public Attributes

bool can_add_option_
 True, if an option can be added to the poll using addPollOption.
 
object_ptr< formattedText > description_
 Description of the poll.
 
object_ptr< PollMedia > media_
 Media attached to the poll; may be null if none. If present, currently, can be only of the types pollMediaAnimation, pollMediaAudio, pollMediaDocument, pollMediaLocation, pollMediaPhoto, pollMediaVenue, or pollMediaVideo.
 
object_ptr< poll > poll_
 Information about the poll.
 

Static Public Attributes

static const std::int32_t ID = 868419197
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ messagePoll() [1/2]

A message with a poll.

◆ messagePoll() [2/2]

messagePoll ( object_ptr< poll > &&  poll_,
object_ptr< formattedText > &&  description_,
object_ptr< PollMedia > &&  media_,
bool  can_add_option_ 
)

A message with a poll.

Parameters
[in]poll_Information about the poll.
[in]description_Description of the poll.
[in]media_Media attached to the poll; may be null if none. If present, currently, can be only of the types pollMediaAnimation, pollMediaAudio, pollMediaDocument, pollMediaLocation, pollMediaPhoto, pollMediaVenue, or pollMediaVideo.
[in]can_add_option_True, if an option can be added to the poll using addPollOption.

Member Function Documentation

◆ store()

void store ( TlStorerToString &  s,
const char *  field_name 
) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements TlObject.


The documentation for this class was generated from the following file: