Add Chat.is_forum.
This commit is contained in:
parent
1da3efa4ac
commit
b396c1d47b
2 changed files with 5 additions and 0 deletions
|
|
@ -710,6 +710,9 @@ class Client::JsonChat final : public Jsonable {
|
||||||
if (!supergroup_info->active_usernames.empty()) {
|
if (!supergroup_info->active_usernames.empty()) {
|
||||||
object("username", supergroup_info->active_usernames[0]);
|
object("username", supergroup_info->active_usernames[0]);
|
||||||
}
|
}
|
||||||
|
if (supergroup_info->is_supergroup && supergroup_info->is_forum) {
|
||||||
|
object("is_forum", td::JsonTrue());
|
||||||
|
}
|
||||||
|
|
||||||
if (supergroup_info->is_supergroup) {
|
if (supergroup_info->is_supergroup) {
|
||||||
object("type", "supergroup");
|
object("type", "supergroup");
|
||||||
|
|
@ -9253,6 +9256,7 @@ void Client::add_supergroup(SupergroupInfo *supergroup_info, object_ptr<td_api::
|
||||||
supergroup_info->date = supergroup->date_;
|
supergroup_info->date = supergroup->date_;
|
||||||
supergroup_info->status = std::move(supergroup->status_);
|
supergroup_info->status = std::move(supergroup->status_);
|
||||||
supergroup_info->is_supergroup = !supergroup->is_channel_;
|
supergroup_info->is_supergroup = !supergroup->is_channel_;
|
||||||
|
supergroup_info->is_forum = supergroup->is_forum_;
|
||||||
supergroup_info->has_location = supergroup->has_location_;
|
supergroup_info->has_location = supergroup->has_location_;
|
||||||
supergroup_info->join_to_send_messages = supergroup->join_to_send_messages_;
|
supergroup_info->join_to_send_messages = supergroup->join_to_send_messages_;
|
||||||
supergroup_info->join_by_request = supergroup->join_by_request_;
|
supergroup_info->join_by_request = supergroup->join_by_request_;
|
||||||
|
|
|
||||||
|
|
@ -683,6 +683,7 @@ class Client final : public WebhookActor::Callback {
|
||||||
object_ptr<td_api::chatLocation> location;
|
object_ptr<td_api::chatLocation> location;
|
||||||
object_ptr<td_api::ChatMemberStatus> status;
|
object_ptr<td_api::ChatMemberStatus> status;
|
||||||
bool is_supergroup = false;
|
bool is_supergroup = false;
|
||||||
|
bool is_forum = false;
|
||||||
bool can_set_sticker_set = false;
|
bool can_set_sticker_set = false;
|
||||||
bool has_location = false;
|
bool has_location = false;
|
||||||
bool join_to_send_messages = false;
|
bool join_to_send_messages = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue