tgbot-cpp
Loading...
Searching...
No Matches
BusinessConnection.h
Go to the documentation of this file.
1#ifndef TGBOT_BUSINESSCONNECTION_H
2#define TGBOT_BUSINESSCONNECTION_H
3
4#include "tgbot/types/User.h"
5
6#include <cstdint>
7#include <memory>
8#include <string>
9
10namespace TgBot {
11
18
19public:
20 typedef std::shared_ptr<BusinessConnection> Ptr;
21
25 std::string id;
26
31
38 std::int64_t userChatId;
39
43 std::uint32_t date;
44
49
54};
55}
56
57#endif //TGBOT_BUSINESSCONNECTION_H
Describes the connection of the bot with a business account.
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 isEnabled
True, if the connection is active.
std::string id
Unique identifier of the business connection.
User::Ptr user
Business account user that created the business connection.
std::shared_ptr< BusinessConnection > Ptr
bool canReply
True, if the bot can act on behalf of the business account in chats that were active in the last 24 h...
std::shared_ptr< User > Ptr
Definition User.h:18
Definition Api.h:40