TDLib
Loading...
Searching...
No Matches
pollOptionProperties Class Referencefinal

Inherits Object.

Description

Contains properties of a poll option and describes actions that can be done with the option right now.

Public Member Functions

 pollOptionProperties ()
 pollOptionProperties (bool can_be_deleted_, bool can_be_replied_, bool can_be_replied_in_another_chat_, bool can_get_link_)
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_be_deleted_
 True, if the option can be deleted using deletePollOption.
bool can_be_replied_
 True, if the poll option can be replied in the same chat and forum topic using inputMessageReplyToMessage.
bool can_be_replied_in_another_chat_
 True, if the poll option can be replied in another chat or forum topic using inputMessageReplyToExternalMessage.
bool can_get_link_
 True, if a link can be generated for the poll option using getMessageLink.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ pollOptionProperties() [1/2]

pollOptionProperties ( )

Contains properties of a poll option and describes actions that can be done with the option right now.

◆ pollOptionProperties() [2/2]

pollOptionProperties ( bool can_be_deleted_,
bool can_be_replied_,
bool can_be_replied_in_another_chat_,
bool can_get_link_ )

Contains properties of a poll option and describes actions that can be done with the option right now.

Parameters
[in]can_be_deleted_True, if the option can be deleted using deletePollOption.
[in]can_be_replied_True, if the poll option can be replied in the same chat and forum topic using inputMessageReplyToMessage.
[in]can_be_replied_in_another_chat_True, if the poll option can be replied in another chat or forum topic using inputMessageReplyToExternalMessage.
[in]can_get_link_True, if a link can be generated for the poll option using getMessageLink.

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: