tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
Loading...
Searching...
No Matches
td::td_api::messagePoll Class Referencefinal

#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>

Inheritance diagram for td::td_api::messagePoll:
td::td_api::MessageContent td::td_api::Object td::TlObject

Public Member Functions

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

Public Attributes

object_ptr< pollpoll_
 Information about the poll.
 
object_ptr< formattedTextdescription_
 Description of the poll.
 
object_ptr< MessageContentmedia_
 Media attached to the poll. Currently, can be only of the types messageAnimation, messageAudio, messageDocument, messageLocation, messagePhoto, messageVenue, or messageVideo without caption.
 
bool can_add_option_
 True, if an option can be added to the poll using addPollOption.
 

Static Public Attributes

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

Detailed Description

A message with a poll.

Definition at line 39748 of file td_api.h.

Constructor & Destructor Documentation

◆ messagePoll() [1/2]

td::td_api::messagePoll::messagePoll ( )

A message with a poll.

◆ messagePoll() [2/2]

td::td_api::messagePoll::messagePoll ( object_ptr< poll > &&  poll_,
object_ptr< formattedText > &&  description_,
object_ptr< MessageContent > &&  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. Currently, can be only of the types messageAnimation, messageAudio, messageDocument, messageLocation, messagePhoto, messageVenue, or messageVideo without caption.
[in]can_add_option_True, if an option can be added to the poll using addPollOption.

Member Function Documentation

◆ store()

void td::td_api::messagePoll::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 td::TlObject.

Member Data Documentation

◆ can_add_option_

bool td::td_api::messagePoll::can_add_option_

True, if an option can be added to the poll using addPollOption.

Definition at line 39765 of file td_api.h.

◆ description_

object_ptr<formattedText> td::td_api::messagePoll::description_

Description of the poll.

Definition at line 39761 of file td_api.h.

◆ ID

const std::int32_t td::td_api::messagePoll::ID = -1644813882
static

Identifier uniquely determining a type of the object.

Definition at line 39783 of file td_api.h.

◆ media_

object_ptr<MessageContent> td::td_api::messagePoll::media_

Media attached to the poll. Currently, can be only of the types messageAnimation, messageAudio, messageDocument, messageLocation, messagePhoto, messageVenue, or messageVideo without caption.

Definition at line 39763 of file td_api.h.

◆ poll_

object_ptr<poll> td::td_api::messagePoll::poll_

Information about the poll.

Definition at line 39759 of file td_api.h.


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