Add the field User.added_to_attachment_menu.
This commit is contained in:
parent
89f6bed3b8
commit
fd7489f6da
2 changed files with 5 additions and 0 deletions
|
|
@ -348,6 +348,9 @@ class Client::JsonUser final : public Jsonable {
|
||||||
if (user_info != nullptr && !user_info->language_code.empty()) {
|
if (user_info != nullptr && !user_info->language_code.empty()) {
|
||||||
object("language_code", user_info->language_code);
|
object("language_code", user_info->language_code);
|
||||||
}
|
}
|
||||||
|
if (user_info != nullptr && user_info->added_to_attachment_menu) {
|
||||||
|
object("added_to_attachment_menu", td::JsonTrue());
|
||||||
|
}
|
||||||
if (is_bot && full_bot_info_) {
|
if (is_bot && full_bot_info_) {
|
||||||
object("can_join_groups", td::JsonBool(user_info->can_join_groups));
|
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("can_read_all_group_messages", td::JsonBool(user_info->can_read_all_group_messages));
|
||||||
|
|
@ -8883,6 +8886,7 @@ void Client::add_user(UserInfo *user_info, object_ptr<td_api::user> &&user) {
|
||||||
user_info->language_code = std::move(user->language_code_);
|
user_info->language_code = std::move(user->language_code_);
|
||||||
|
|
||||||
user_info->have_access = user->have_access_;
|
user_info->have_access = user->have_access_;
|
||||||
|
user_info->added_to_attachment_menu = user->added_to_attachment_menu_;
|
||||||
|
|
||||||
switch (user->type_->get_id()) {
|
switch (user->type_->get_id()) {
|
||||||
case td_api::userTypeRegular::ID:
|
case td_api::userTypeRegular::ID:
|
||||||
|
|
|
||||||
|
|
@ -615,6 +615,7 @@ class Client final : public WebhookActor::Callback {
|
||||||
bool can_read_all_group_messages = false;
|
bool can_read_all_group_messages = false;
|
||||||
bool is_inline_bot = false;
|
bool is_inline_bot = false;
|
||||||
bool has_private_forwards = false;
|
bool has_private_forwards = false;
|
||||||
|
bool added_to_attachment_menu = false;
|
||||||
};
|
};
|
||||||
static void add_user(UserInfo *user_info, object_ptr<td_api::user> &&user);
|
static void add_user(UserInfo *user_info, object_ptr<td_api::user> &&user);
|
||||||
void set_user_photo(int64 user_id, object_ptr<td_api::chatPhoto> &&photo);
|
void set_user_photo(int64 user_id, object_ptr<td_api::chatPhoto> &&photo);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue