tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
Loading...
Searching...
No Matches
td::td_api::businessConnection Class Referencefinal

#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>

Inheritance diagram for td::td_api::businessConnection:
td::td_api::Object td::TlObject

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 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 id_
 Unique identifier of the connection.
 
int53 user_id_
 Identifier of the business user who 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.
 
object_ptr< businessBotRightsrights_
 Rights of the bot; may be null if the connection was disabled.
 
bool is_enabled_
 True, if the connection is enabled; false otherwise.
 

Static Public Attributes

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

Detailed Description

Describes a connection of the bot with a business account.

Definition at line 5752 of file td_api.h.

Constructor & Destructor Documentation

◆ businessConnection() [1/2]

td::td_api::businessConnection::businessConnection ( )

Describes a connection of the bot with a business account.

◆ businessConnection() [2/2]

td::td_api::businessConnection::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 td::td_api::businessConnection::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.

Member Data Documentation

◆ date_

int32 td::td_api::businessConnection::date_

Point in time (Unix timestamp) when the connection was established.

Definition at line 5769 of file td_api.h.

◆ ID

const std::int32_t td::td_api::businessConnection::ID = -995703933
static

Identifier uniquely determining a type of the object.

Definition at line 5793 of file td_api.h.

◆ id_

string td::td_api::businessConnection::id_

Unique identifier of the connection.

Definition at line 5763 of file td_api.h.

◆ is_enabled_

bool td::td_api::businessConnection::is_enabled_

True, if the connection is enabled; false otherwise.

Definition at line 5773 of file td_api.h.

◆ rights_

object_ptr<businessBotRights> td::td_api::businessConnection::rights_

Rights of the bot; may be null if the connection was disabled.

Definition at line 5771 of file td_api.h.

◆ user_chat_id_

int53 td::td_api::businessConnection::user_chat_id_

Chat identifier of the private chat with the user.

Definition at line 5767 of file td_api.h.

◆ user_id_

int53 td::td_api::businessConnection::user_id_

Identifier of the business user who created the connection.

Definition at line 5765 of file td_api.h.


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