mirror of
https://github.com/PaiGramTeam/telegram-bot-api.git
synced 2024-11-16 12:51:24 +00:00
Add User.can_connect_to_business.
This commit is contained in:
parent
f706d88055
commit
5f6e1a262f
@ -416,6 +416,7 @@ class Client::JsonUser final : public td::Jsonable {
|
||||
object("can_join_groups", td::JsonBool(user_info->can_join_groups));
|
||||
object("can_read_all_group_messages", td::JsonBool(user_info->can_read_all_group_messages));
|
||||
object("supports_inline_queries", td::JsonBool(user_info->is_inline_bot));
|
||||
object("can_connect_to_business", td::JsonBool(user_info->can_connect_to_business));
|
||||
}
|
||||
}
|
||||
|
||||
@ -12115,6 +12116,7 @@ void Client::add_user(UserInfo *user_info, object_ptr<td_api::user> &&user) {
|
||||
user_info->can_join_groups = bot->can_join_groups_;
|
||||
user_info->can_read_all_group_messages = bot->can_read_all_group_messages_;
|
||||
user_info->is_inline_bot = bot->is_inline_;
|
||||
user_info->can_connect_to_business = bot->can_connect_to_business_;
|
||||
break;
|
||||
}
|
||||
case td_api::userTypeDeleted::ID:
|
||||
|
@ -809,6 +809,7 @@ class Client final : public WebhookActor::Callback {
|
||||
bool have_access = false;
|
||||
bool can_join_groups = false;
|
||||
bool can_read_all_group_messages = false;
|
||||
bool can_connect_to_business = false;
|
||||
bool is_inline_bot = false;
|
||||
bool has_private_forwards = false;
|
||||
bool has_restricted_voice_and_video_messages = false;
|
||||
|
Loading…
Reference in New Issue
Block a user