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

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

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<BusinessConnection>

Public Attributes

std::string id { }
 Unique identifier of the business connection.
std::shared_ptr< Useruser { }
 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. 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.
std::int32_t date { }
 Date the connection was established in Unix time.
std::shared_ptr< BusinessBotRightsrights { }
 Optional. Rights of the business bot.
bool isEnabled { }
 True, if the connection is active.

Detailed Description

Describes the connection of the bot with a business account.

Definition at line 1266 of file Types.h.

Member Typedef Documentation

◆ Ptr

Definition at line 1267 of file Types.h.

Member Data Documentation

◆ date

std::int32_t TgBot::BusinessConnection::date { }

Date the connection was established in Unix time.

Definition at line 1290 of file Types.h.

◆ id

std::string TgBot::BusinessConnection::id { }

Unique identifier of the business connection.

Definition at line 1272 of file Types.h.

◆ isEnabled

bool TgBot::BusinessConnection::isEnabled { }

True, if the connection is active.

Definition at line 1300 of file Types.h.

◆ rights

std::shared_ptr<BusinessBotRights> TgBot::BusinessConnection::rights { }

Optional. Rights of the business bot.

Definition at line 1295 of file Types.h.

◆ user

std::shared_ptr<User> TgBot::BusinessConnection::user { }

Business account user that created the business connection.

Definition at line 1277 of file Types.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 1285 of file Types.h.


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