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

Inherits td::td_api::InternalLinkType.

Public Member Functions

 internalLinkTypeBotStart ()
 
 internalLinkTypeBotStart (string const &bot_username_, string const &start_parameter_, bool autostart_)
 
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 start_parameter_
 The parameter to be passed to sendBotStartMessage.
 
bool autostart_
 True, if sendBotStartMessage must be called automatically without showing the START button.
 

Static Public Attributes

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

Detailed Description

The link is a link to a chat with a Telegram bot. Call searchPublicChat with the given bot username, check that the user is a bot, show START button in the chat with the bot, and then call sendBotStartMessage with the given start parameter after the button is pressed.

Constructor & Destructor Documentation

◆ internalLinkTypeBotStart() [1/2]

td::td_api::internalLinkTypeBotStart::internalLinkTypeBotStart ( )

The link is a link to a chat with a Telegram bot. Call searchPublicChat with the given bot username, check that the user is a bot, show START button in the chat with the bot, and then call sendBotStartMessage with the given start parameter after the button is pressed.

◆ internalLinkTypeBotStart() [2/2]

td::td_api::internalLinkTypeBotStart::internalLinkTypeBotStart ( string const &  bot_username_,
string const &  start_parameter_,
bool  autostart_ 
)

The link is a link to a chat with a Telegram bot. Call searchPublicChat with the given bot username, check that the user is a bot, show START button in the chat with the bot, and then call sendBotStartMessage with the given start parameter after the button is pressed.

Parameters
[in]bot_username_Username of the bot.
[in]start_parameter_The parameter to be passed to sendBotStartMessage.
[in]autostart_True, if sendBotStartMessage must be called automatically without showing the START button.

Member Function Documentation

◆ get_id()

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

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements td::TlObject.

◆ store()

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