Add Chat.active_usernames.
This commit is contained in:
parent
b396c1d47b
commit
13387003d6
1 changed files with 8 additions and 0 deletions
|
|
@ -664,6 +664,10 @@ class Client::JsonChat final : public Jsonable {
|
|||
}
|
||||
object("type", "private");
|
||||
if (is_full_) {
|
||||
if (!user_info->active_usernames.empty()) {
|
||||
object("active_usernames", td::json_array(user_info->active_usernames,
|
||||
[](Slice username) { return td::JsonString(username); }));
|
||||
}
|
||||
if (!user_info->bio.empty()) {
|
||||
object("bio", user_info->bio);
|
||||
}
|
||||
|
|
@ -720,6 +724,10 @@ class Client::JsonChat final : public Jsonable {
|
|||
object("type", "channel");
|
||||
}
|
||||
if (is_full_) {
|
||||
if (!supergroup_info->active_usernames.empty()) {
|
||||
object("active_usernames", td::json_array(supergroup_info->active_usernames,
|
||||
[](Slice username) { return td::JsonString(username); }));
|
||||
}
|
||||
if (!supergroup_info->description.empty()) {
|
||||
object("description", supergroup_info->description);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue