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

Inherits KeyboardButtonType.

Description

A button that allows the user to create and send a poll when pressed; available only in private chats.

Public Member Functions

 keyboardButtonTypeRequestPoll ()
 keyboardButtonTypeRequestPoll (bool force_regular_, bool force_quiz_)
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 force_quiz_
 If true, only polls in quiz mode must be allowed to create.
bool force_regular_
 If true, only regular polls must be allowed to create.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ keyboardButtonTypeRequestPoll() [1/2]

keyboardButtonTypeRequestPoll ( )

A button that allows the user to create and send a poll when pressed; available only in private chats.

◆ keyboardButtonTypeRequestPoll() [2/2]

keyboardButtonTypeRequestPoll ( bool force_regular_,
bool force_quiz_ )

A button that allows the user to create and send a poll when pressed; available only in private chats.

Parameters
[in]force_regular_If true, only regular polls must be allowed to create.
[in]force_quiz_If true, only polls in quiz mode must be allowed to create.

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: