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

Inherits td::td_api::InternalLinkType.

Public Member Functions

 internalLinkTypeSideMenuBot ()
 
 internalLinkTypeSideMenuBot (string const &bot_username_, string const &url_)
 
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.
 
string url_
 URL to be passed to getWebAppUrl.
 

Static Public Attributes

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

Detailed Description

The link is a link to a bot, which can be installed to the side menu. Call searchPublicChat with the given bot username, check that the user is a bot and can be added to attachment menu. Then, use getAttachmentMenuBot to receive information about the bot. If the bot isn't added to side menu, then show a disclaimer about Mini Apps being a third-party apps, ask the user to accept their Terms of service and confirm adding the bot to side and attachment menu. If the user accept the terms and confirms adding, then use toggleBotIsAddedToAttachmentMenu to add the bot. If the bot is added to side menu, then use getWebAppUrl with the given URL.

Constructor & Destructor Documentation

◆ internalLinkTypeSideMenuBot() [1/2]

td::td_api::internalLinkTypeSideMenuBot::internalLinkTypeSideMenuBot ( )

The link is a link to a bot, which can be installed to the side menu. Call searchPublicChat with the given bot username, check that the user is a bot and can be added to attachment menu. Then, use getAttachmentMenuBot to receive information about the bot. If the bot isn't added to side menu, then show a disclaimer about Mini Apps being a third-party apps, ask the user to accept their Terms of service and confirm adding the bot to side and attachment menu. If the user accept the terms and confirms adding, then use toggleBotIsAddedToAttachmentMenu to add the bot. If the bot is added to side menu, then use getWebAppUrl with the given URL.

◆ internalLinkTypeSideMenuBot() [2/2]

td::td_api::internalLinkTypeSideMenuBot::internalLinkTypeSideMenuBot ( string const &  bot_username_,
string const &  url_ 
)

The link is a link to a bot, which can be installed to the side menu. Call searchPublicChat with the given bot username, check that the user is a bot and can be added to attachment menu. Then, use getAttachmentMenuBot to receive information about the bot. If the bot isn't added to side menu, then show a disclaimer about Mini Apps being a third-party apps, ask the user to accept their Terms of service and confirm adding the bot to side and attachment menu. If the user accept the terms and confirms adding, then use toggleBotIsAddedToAttachmentMenu to add the bot. If the bot is added to side menu, then use getWebAppUrl with the given URL.

Parameters
[in]bot_username_Username of the bot.
[in]url_URL to be passed to getWebAppUrl.

Member Function Documentation

◆ get_id()

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

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements td::TlObject.

◆ store()

void td::td_api::internalLinkTypeSideMenuBot::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: