mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-11-26 22:16:51 +01:00
Add Chat.has_visible_history.
This commit is contained in:
parent
b34c595eb0
commit
704a4272dd
@ -800,6 +800,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()));
|
||||
}
|
||||
@ -5332,6 +5335,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_);
|
||||
|
@ -760,6 +760,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;
|
||||
|
Loading…
Reference in New Issue
Block a user