| tgbot-cpp
    | 
Describes the connection of the bot with a business account. More...
#include <BusinessConnection.h>
| Public Types | |
| typedef std::shared_ptr< BusinessConnection > | Ptr | 
| 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. | |
Describes the connection of the bot with a business account.
Definition at line 17 of file BusinessConnection.h.
| typedef std::shared_ptr<BusinessConnection> TgBot::BusinessConnection::Ptr | 
Definition at line 20 of file BusinessConnection.h.
| 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.
| std::uint32_t TgBot::BusinessConnection::date | 
Date the connection was established in Unix time.
Definition at line 43 of file BusinessConnection.h.
| std::string TgBot::BusinessConnection::id | 
Unique identifier of the business connection.
Definition at line 25 of file BusinessConnection.h.
| bool TgBot::BusinessConnection::isEnabled | 
True, if the connection is active.
Definition at line 53 of file BusinessConnection.h.
| User::Ptr TgBot::BusinessConnection::user | 
Business account user that created the business connection.
Definition at line 30 of file BusinessConnection.h.
| 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.