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

Inherits KeyboardButtonType.

Description

A button that requests creation of a managed bot by the current user; available only in private chats. Use the method createBot to complete the request.

Public Member Functions

 keyboardButtonTypeRequestManagedBot ()
 keyboardButtonTypeRequestManagedBot (int32 id_, string const &suggested_name_, string const &suggested_username_)
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

int32 id_
 Unique button identifier.
string suggested_name_
 Suggested name for the bot; may be empty if not specified.
string suggested_username_
 Suggested username for the bot; may be empty if not specified.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ keyboardButtonTypeRequestManagedBot() [1/2]

keyboardButtonTypeRequestManagedBot ( )

A button that requests creation of a managed bot by the current user; available only in private chats. Use the method createBot to complete the request.

◆ keyboardButtonTypeRequestManagedBot() [2/2]

keyboardButtonTypeRequestManagedBot ( int32 id_,
string const & suggested_name_,
string const & suggested_username_ )

A button that requests creation of a managed bot by the current user; available only in private chats. Use the method createBot to complete the request.

Parameters
[in]id_Unique button identifier.
[in]suggested_name_Suggested name for the bot; may be empty if not specified.
[in]suggested_username_Suggested username for the bot; may be empty if not specified.

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: