TDLib
Loading...
Searching...
No Matches
td::td_api::internalLinkTypeWebApp Class Referencefinal

Inherits td::td_api::InternalLinkType.

Public Member Functions

 internalLinkTypeWebApp ()
 
 internalLinkTypeWebApp (string const &bot_username_, string const &web_app_short_name_, string const &start_parameter_)
 
std::int32_t get_id () const final
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Member Functions inherited from td::TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Public Attributes

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.
 

Static Public Attributes

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

Detailed Description

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 a third-party apps 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.

Constructor & Destructor Documentation

◆ internalLinkTypeWebApp() [1/2]

td::td_api::internalLinkTypeWebApp::internalLinkTypeWebApp ( )

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 a third-party apps 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() [2/2]

td::td_api::internalLinkTypeWebApp::internalLinkTypeWebApp ( string const &  bot_username_,
string const &  web_app_short_name_,
string const &  start_parameter_ 
)

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 a third-party apps 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.

Parameters
[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.

Member Function Documentation

◆ get_id()

std::int32_t td::td_api::internalLinkTypeWebApp::get_id ( ) const
inlinefinalvirtual

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements td::TlObject.

◆ store()

void td::td_api::internalLinkTypeWebApp::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 td::TlObject.


The documentation for this class was generated from the following file: