tgbot-cpp
Loading...
Searching...
No Matches
TgBot::BusinessConnection Class Reference

Describes the connection of the bot with a business account. More...

#include <BusinessConnection.h>

Public Types

typedef std::shared_ptr< BusinessConnectionPtr
 

Public Attributes

std::string id
 Unique identifier of the business connection.
 
User::Ptr user
 Business account user that created the business connection.
 
std::int64_t userChatId
 Identifier of a private chat with the user who created the business connection.
 
std::uint32_t date
 Date the connection was established in Unix time.
 
bool canReply
 True, if the bot can act on behalf of the business account in chats that were active in the last 24 hours.
 
bool isEnabled
 True, if the connection is active.
 

Detailed Description

Describes the connection of the bot with a business account.

Definition at line 17 of file BusinessConnection.h.

Member Typedef Documentation

◆ Ptr

Definition at line 20 of file BusinessConnection.h.

Member Data Documentation

◆ canReply

bool TgBot::BusinessConnection::canReply

True, if the bot can act on behalf of the business account in chats that were active in the last 24 hours.

Definition at line 48 of file BusinessConnection.h.

◆ date

std::uint32_t TgBot::BusinessConnection::date

Date the connection was established in Unix time.

Definition at line 43 of file BusinessConnection.h.

◆ id

std::string TgBot::BusinessConnection::id

Unique identifier of the business connection.

Definition at line 25 of file BusinessConnection.h.

◆ isEnabled

bool TgBot::BusinessConnection::isEnabled

True, if the connection is active.

Definition at line 53 of file BusinessConnection.h.

◆ user

User::Ptr TgBot::BusinessConnection::user

Business account user that created the business connection.

Definition at line 30 of file BusinessConnection.h.

◆ userChatId

std::int64_t TgBot::BusinessConnection::userChatId

Identifier of a private chat with the user who created the business connection.

This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.

Definition at line 38 of file BusinessConnection.h.


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