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

Inherits InternalLinkType.

Description

The link is a link to a dialog for creating of a managed bot. Call searchPublicChat with the given manager bot username. If the chat is found, the chat is a chat with a bot and the bot has can_manage_bots == true, then show bot creation confirmation dialog with the given suggested_bot_username and suggested_bot_name. If user agrees, call createBot with via_link == true to create the bot.

Public Member Functions

 internalLinkTypeRequestManagedBot ()
 internalLinkTypeRequestManagedBot (string const &manager_bot_username_, string const &suggested_bot_username_, string const &suggested_bot_name_)
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

string manager_bot_username_
 Username of the bot which will manage the new bot.
string suggested_bot_name_
 Suggested name for the bot; may be empty if not specified.
string suggested_bot_username_
 Suggested username for the bot; always ends with "bot" case-insensitive.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ internalLinkTypeRequestManagedBot() [1/2]

internalLinkTypeRequestManagedBot ( )

The link is a link to a dialog for creating of a managed bot. Call searchPublicChat with the given manager bot username. If the chat is found, the chat is a chat with a bot and the bot has can_manage_bots == true, then show bot creation confirmation dialog with the given suggested_bot_username and suggested_bot_name. If user agrees, call createBot with via_link == true to create the bot.

◆ internalLinkTypeRequestManagedBot() [2/2]

internalLinkTypeRequestManagedBot ( string const & manager_bot_username_,
string const & suggested_bot_username_,
string const & suggested_bot_name_ )

The link is a link to a dialog for creating of a managed bot. Call searchPublicChat with the given manager bot username. If the chat is found, the chat is a chat with a bot and the bot has can_manage_bots == true, then show bot creation confirmation dialog with the given suggested_bot_username and suggested_bot_name. If user agrees, call createBot with via_link == true to create the bot.

Parameters
[in]manager_bot_username_Username of the bot which will manage the new bot.
[in]suggested_bot_username_Suggested username for the bot; always ends with "bot" case-insensitive.
[in]suggested_bot_name_Suggested name 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: