Inherits Function.
Returns menu button set by the bot for the given user; for bots only.
Returns object_ptr<BotMenuButton>.
Public Fields | |
int53 | user_id_ |
Identifier of the user or 0 to get the default menu button. | |
Public Types | |
using | ReturnType = object_ptr< botMenuButton > |
Typedef for the type returned by the function. | |
Public Instance Methods | |
getMenuButton () | |
getMenuButton (int53 user_id_) | |
void | store (TlStorerToString &s, const char *field_name) const final |
Public Instance Methods inherited from TlObject | |
virtual void | store (TlStorerUnsafe &s) const |
virtual void | store (TlStorerCalcLength &s) const |
TlObject ()=default | |
TlObject (const TlObject &)=delete | |
TlObject & | operator= (const TlObject &)=delete |
TlObject (TlObject &&)=default | |
TlObject & | operator= (TlObject &&)=default |
virtual | ~TlObject ()=default |
Static Public Attributes | |
static const std::int32_t | ID = -437324736 |
Identifier uniquely determining a type of the object. | |
getMenuButton | ( | ) |
Default constructor for a function, which returns menu button set by the bot for the given user; for bots only.
Returns object_ptr<BotMenuButton>.
|
explicit |
Creates a function, which returns menu button set by the bot for the given user; for bots only.
Returns object_ptr<BotMenuButton>.
[in] | user_id_ | Identifier of the user or 0 to get the default menu button. |
|
finalvirtual |