mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-11-19 02:29:26 +01:00
Add Chat.is_forum.
This commit is contained in:
parent
90d30d9a63
commit
1270c70499
@ -710,6 +710,9 @@ class Client::JsonChat final : public Jsonable {
|
||||
if (!supergroup_info->active_usernames.empty()) {
|
||||
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) {
|
||||
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->status = std::move(supergroup->status_);
|
||||
supergroup_info->is_supergroup = !supergroup->is_channel_;
|
||||
supergroup_info->is_forum = supergroup->is_forum_;
|
||||
supergroup_info->has_location = supergroup->has_location_;
|
||||
supergroup_info->join_to_send_messages = supergroup->join_to_send_messages_;
|
||||
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::ChatMemberStatus> status;
|
||||
bool is_supergroup = false;
|
||||
bool is_forum = false;
|
||||
bool can_set_sticker_set = false;
|
||||
bool has_location = false;
|
||||
bool join_to_send_messages = false;
|
||||
|
Loading…
Reference in New Issue
Block a user