TDLib
Loading...
Searching...
No Matches
businessConnection Class Referencefinal

Inherits Object.

Description

Describes a connection of the bot with a business account.

Public Member Functions

 businessConnection ()
 businessConnection (string const &id_, int53 user_id_, int53 user_chat_id_, int32 date_, object_ptr< businessBotRights > &&rights_, bool is_enabled_)
void store (TlStorerToString &s, const char *field_name) const final
Public Member Functions inherited from TlObject
TlObject & operator= (const TlObject &)=delete
TlObject & operator= (TlObject &&)=default
virtual void store (TlStorerCalcLength &s) const
virtual void store (TlStorerUnsafe &s) const
 TlObject ()=default
 TlObject (const TlObject &)=delete
 TlObject (TlObject &&)=default
virtual ~TlObject ()=default

Public Attributes

int32 date_
 Point in time (Unix timestamp) when the connection was established.
string id_
 Unique identifier of the connection.
bool is_enabled_
 True, if the connection is enabled; false otherwise.
object_ptr< businessBotRights > rights_
 Rights of the bot; may be null if the connection was disabled.
int53 user_chat_id_
 Chat identifier of the private chat with the user.
int53 user_id_
 Identifier of the business user who created the connection.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ businessConnection() [1/2]

businessConnection ( )

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_,
object_ptr< businessBotRights > && rights_,
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 who 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]rights_Rights of the bot; may be null if the connection was disabled.
[in]is_enabled_True, if the connection is enabled; false otherwise.

Member Function 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: