Add Chat.has_visible_history.

This commit is contained in:
levlam 2023-11-13 18:56:15 +03:00 committed by David Guillen Fandos
parent d7d127430f
commit 0da8d14430
2 changed files with 5 additions and 0 deletions

View File

@ -894,6 +894,9 @@ class Client::JsonChat final : public td::Jsonable {
if (supergroup_info->can_set_sticker_set) {
object("can_set_sticker_set", td::JsonTrue());
}
if (supergroup_info->is_all_history_available) {
object("has_visible_history", td::JsonTrue());
}
if (supergroup_info->is_supergroup) {
object("permissions", JsonChatPermissions(chat_info->permissions.get()));
}
@ -6038,6 +6041,7 @@ void Client::on_update(object_ptr<td_api::Object> result) {
full_info->invite_link_ != nullptr ? std::move(full_info->invite_link_->invite_link_) : td::string());
supergroup_info->sticker_set_id = full_info->sticker_set_id_;
supergroup_info->can_set_sticker_set = full_info->can_set_sticker_set_;
supergroup_info->is_all_history_available = full_info->is_all_history_available_;
supergroup_info->slow_mode_delay = full_info->slow_mode_delay_;
supergroup_info->linked_chat_id = full_info->linked_chat_id_;
supergroup_info->location = std::move(full_info->location_);

View File

@ -870,6 +870,7 @@ class Client final : public WebhookActor::Callback {
bool is_supergroup = false;
bool is_forum = false;
bool can_set_sticker_set = false;
bool is_all_history_available = false;
bool has_location = false;
bool join_to_send_messages = false;
bool join_by_request = false;