Add Chat.emoji_status_custom_emoji_id.

This commit is contained in:
levlam 2022-10-31 15:59:15 +03:00
parent 1ba4392648
commit 5fb80085fb
2 changed files with 5 additions and 0 deletions

View File

@ -668,6 +668,9 @@ class Client::JsonChat final : public Jsonable {
object("active_usernames", td::json_array(user_info->active_usernames,
[](Slice username) { return td::JsonString(username); }));
}
if (user_info->emoji_status_custom_emoji_id != 0) {
object("emoji_status_custom_emoji_id", user_info->emoji_status_custom_emoji_id);
}
if (!user_info->bio.empty()) {
object("bio", user_info->bio);
}
@ -9160,6 +9163,7 @@ void Client::add_user(UserInfo *user_info, object_ptr<td_api::user> &&user) {
user_info->editable_username = std::move(user->usernames_->editable_username_);
}
user_info->language_code = std::move(user->language_code_);
user_info->emoji_status_custom_emoji_id = user->emoji_status_ != nullptr ? user->emoji_status_->custom_emoji_id_ : 0;
user_info->have_access = user->have_access_;
user_info->is_premium = user->is_premium_;

View File

@ -632,6 +632,7 @@ class Client final : public WebhookActor::Callback {
td::vector<td::string> active_usernames;
td::string editable_username;
td::string language_code;
int64 emoji_status_custom_emoji_id;
object_ptr<td_api::chatPhoto> photo;
td::string bio;