mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-11-23 04:26:51 +01:00
Add User.has_main_web_app.
This commit is contained in:
parent
16de9313b0
commit
127964a3f2
@ -420,6 +420,7 @@ class Client::JsonUser final : public td::Jsonable {
|
||||
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));
|
||||
object("has_main_web_app", td::JsonBool(user_info->has_main_web_app));
|
||||
}
|
||||
}
|
||||
|
||||
@ -12858,6 +12859,7 @@ void Client::add_user(UserInfo *user_info, object_ptr<td_api::user> &&user) {
|
||||
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_;
|
||||
user_info->has_main_web_app = bot->has_main_web_app_;
|
||||
break;
|
||||
}
|
||||
case td_api::userTypeDeleted::ID:
|
||||
|
@ -841,9 +841,10 @@ class Client final : public WebhookActor::Callback {
|
||||
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_main_web_app = false;
|
||||
bool has_private_forwards = false;
|
||||
bool has_restricted_voice_and_video_messages = false;
|
||||
bool is_inline_bot = false;
|
||||
bool is_premium = false;
|
||||
bool added_to_attachment_menu = false;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user