mirror of
https://github.com/PaiGramTeam/telegram-bot-api.git
synced 2024-11-26 18:18:27 +00:00
Add Chat.active_usernames.
This commit is contained in:
parent
1270c70499
commit
1ba4392648
@ -664,6 +664,10 @@ class Client::JsonChat final : public Jsonable {
|
|||||||
}
|
}
|
||||||
object("type", "private");
|
object("type", "private");
|
||||||
if (is_full_) {
|
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()) {
|
if (!user_info->bio.empty()) {
|
||||||
object("bio", user_info->bio);
|
object("bio", user_info->bio);
|
||||||
}
|
}
|
||||||
@ -720,6 +724,10 @@ class Client::JsonChat final : public Jsonable {
|
|||||||
object("type", "channel");
|
object("type", "channel");
|
||||||
}
|
}
|
||||||
if (is_full_) {
|
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()) {
|
if (!supergroup_info->description.empty()) {
|
||||||
object("description", supergroup_info->description);
|
object("description", supergroup_info->description);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user