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

Inherits Object.

Description

Describes one answer option of a poll to be created.

Public Member Functions

 inputPollOption ()
 inputPollOption (object_ptr< formattedText > &&text_, object_ptr< InputPollMedia > &&media_)
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

object_ptr< InputPollMedia > media_
 Option media; pass null if none; ignored in addPollOption. Must be one of the following types: inputPollMediaAnimation, inputPollMediaLink, inputPollMediaLocation, inputPollMediaPhoto, inputPollMediaSticker, inputPollMediaVenue, or inputPollMediaVideo without caption.
object_ptr< formattedText > text_
 Option text; 1-100 characters. Only custom emoji entities are allowed to be added and only by Premium users.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ inputPollOption() [1/2]

inputPollOption ( )

Describes one answer option of a poll to be created.

◆ inputPollOption() [2/2]

inputPollOption ( object_ptr< formattedText > && text_,
object_ptr< InputPollMedia > && media_ )

Describes one answer option of a poll to be created.

Parameters
[in]text_Option text; 1-100 characters. Only custom emoji entities are allowed to be added and only by Premium users.
[in]media_Option media; pass null if none; ignored in addPollOption. Must be one of the following types: inputPollMediaAnimation, inputPollMediaLink, inputPollMediaLocation, inputPollMediaPhoto, inputPollMediaSticker, inputPollMediaVenue, or inputPollMediaVideo without caption.

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: