Inherits InternalLinkType.
The link is a link to a Web App. Call searchPublicChat with the given bot username, check that the user is a bot, then call searchWebApp with the received bot and the given web_app_short_name. Process received foundWebApp by showing a confirmation dialog if needed. If the bot can be added to attachment or side menu, but isn't added yet, then show a disclaimer about Mini Apps being third-party applications instead of the dialog and ask the user to accept their Terms of service. If the user accept the terms and confirms adding, then use toggleBotIsAddedToAttachmentMenu to add the bot. Then, call getWebAppLinkUrl and open the returned URL as a Web App.
Public Fields | |
string | bot_username_ |
Username of the bot that owns the Web App. | |
string | web_app_short_name_ |
Short name of the Web App. | |
string | start_parameter_ |
Start parameter to be passed to getWebAppLinkUrl. | |
object_ptr< WebAppOpenMode > | mode_ |
The mode in which the Web App must be opened. | |
Public Instance Methods | |
internalLinkTypeWebApp () | |
internalLinkTypeWebApp (string const &bot_username_, string const &web_app_short_name_, string const &start_parameter_, object_ptr< WebAppOpenMode > &&mode_) | |
void | store (TlStorerToString &s, const char *field_name) const final |
![]() | |
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 = 2062112045 |
Identifier uniquely determining a type of the object. | |
The link is a link to a Web App. Call searchPublicChat with the given bot username, check that the user is a bot, then call searchWebApp with the received bot and the given web_app_short_name. Process received foundWebApp by showing a confirmation dialog if needed. If the bot can be added to attachment or side menu, but isn't added yet, then show a disclaimer about Mini Apps being third-party applications instead of the dialog and ask the user to accept their Terms of service. If the user accept the terms and confirms adding, then use toggleBotIsAddedToAttachmentMenu to add the bot. Then, call getWebAppLinkUrl and open the returned URL as a Web App.
internalLinkTypeWebApp | ( | string const & | bot_username_, |
string const & | web_app_short_name_, | ||
string const & | start_parameter_, | ||
object_ptr< WebAppOpenMode > && | mode_ | ||
) |
The link is a link to a Web App. Call searchPublicChat with the given bot username, check that the user is a bot, then call searchWebApp with the received bot and the given web_app_short_name. Process received foundWebApp by showing a confirmation dialog if needed. If the bot can be added to attachment or side menu, but isn't added yet, then show a disclaimer about Mini Apps being third-party applications instead of the dialog and ask the user to accept their Terms of service. If the user accept the terms and confirms adding, then use toggleBotIsAddedToAttachmentMenu to add the bot. Then, call getWebAppLinkUrl and open the returned URL as a Web App.
[in] | bot_username_ | Username of the bot that owns the Web App. |
[in] | web_app_short_name_ | Short name of the Web App. |
[in] | start_parameter_ | Start parameter to be passed to getWebAppLinkUrl. |
[in] | mode_ | The mode in which the Web App must be opened. |
|
finalvirtual |