List of all members | Public Fields | Public Instance Methods | Static Public Attributes
businessConnection Class Referencefinal

Inherits Object.

Description

Describes a connection of the bot with a business account.

Public Fields

string id_
 Unique identifier of the connection.
 
int53 user_id_
 Identifier of the business user that created the connection.
 
int53 user_chat_id_
 Chat identifier of the private chat with the user.
 
int32 date_
 Point in time (Unix timestamp) when the connection was established.
 
bool can_reply_
 True, if the bot can send messages to the connected user; false otherwise.
 
bool is_enabled_
 True, if the connection is enabled; false otherwise.
 

Public Instance Methods

 businessConnection ()
 
 businessConnection (string const &id_, int53 user_id_, int53 user_chat_id_, int32 date_, bool can_reply_, bool is_enabled_)
 
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
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ businessConnection() [1/2]

Describes a connection of the bot with a business account.

◆ businessConnection() [2/2]

businessConnection ( string const &  id_,
int53  user_id_,
int53  user_chat_id_,
int32  date_,
bool  can_reply_,
bool  is_enabled_ 
)

Describes a connection of the bot with a business account.

Parameters
[in]id_Unique identifier of the connection.
[in]user_id_Identifier of the business user that created the connection.
[in]user_chat_id_Chat identifier of the private chat with the user.
[in]date_Point in time (Unix timestamp) when the connection was established.
[in]can_reply_True, if the bot can send messages to the connected user; false otherwise.
[in]is_enabled_True, if the connection is enabled; false otherwise.

Method Documentation

◆ store()

void 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 TlObject.


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