Inherits InternalLinkType.
The link is a link to a Telegram bot, which is supposed to be added to a group chat. Call searchPublicChat with the given bot username, check that the user is a bot and can be added to groups, ask the current user to select a group to add the bot to, and then call sendBotStartMessage with the given start parameter and the chosen group chat. Bots can be added to a public group only by administrators of the group.
Public Fields | |
string | bot_username_ |
Username of the bot. | |
string | start_parameter_ |
The parameter to be passed to sendBotStartMessage. | |
Public Instance Methods | |
internalLinkTypeBotStartInGroup () | |
internalLinkTypeBotStartInGroup (string const &bot_username_, string const &start_parameter_) | |
std::int32_t | get_id () const final |
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 = -1040096100 |
Identifier uniquely determining a type of the object. | |
The link is a link to a Telegram bot, which is supposed to be added to a group chat. Call searchPublicChat with the given bot username, check that the user is a bot and can be added to groups, ask the current user to select a group to add the bot to, and then call sendBotStartMessage with the given start parameter and the chosen group chat. Bots can be added to a public group only by administrators of the group.
internalLinkTypeBotStartInGroup | ( | string const & | bot_username_, |
string const & | start_parameter_ | ||
) |
The link is a link to a Telegram bot, which is supposed to be added to a group chat. Call searchPublicChat with the given bot username, check that the user is a bot and can be added to groups, ask the current user to select a group to add the bot to, and then call sendBotStartMessage with the given start parameter and the chosen group chat. Bots can be added to a public group only by administrators of the group.
[in] | bot_username_ | Username of the bot. |
[in] | start_parameter_ | The parameter to be passed to sendBotStartMessage. |
|
inlinefinalvirtual |
|
finalvirtual |