mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-11-19 10:39:26 +01:00
Add the field User.added_to_attachment_menu.
This commit is contained in:
parent
89f6bed3b8
commit
fd7489f6da
@ -348,6 +348,9 @@ class Client::JsonUser final : public Jsonable {
|
||||
if (user_info != nullptr && !user_info->language_code.empty()) {
|
||||
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_) {
|
||||
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));
|
||||
@ -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->have_access = user->have_access_;
|
||||
user_info->added_to_attachment_menu = user->added_to_attachment_menu_;
|
||||
|
||||
switch (user->type_->get_id()) {
|
||||
case td_api::userTypeRegular::ID:
|
||||
|
@ -615,6 +615,7 @@ class Client final : public WebhookActor::Callback {
|
||||
bool can_read_all_group_messages = false;
|
||||
bool is_inline_bot = 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);
|
||||
void set_user_photo(int64 user_id, object_ptr<td_api::chatPhoto> &&photo);
|
||||
|
Loading…
Reference in New Issue
Block a user