From 36b97bd5a78e6b0ece2539b6d66732412f9089c4 Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 14 Feb 2024 18:16:48 +0300 Subject: [PATCH] Add Chat.unrestrict_boost_count. --- telegram-bot-api/Client.cpp | 4 ++++ telegram-bot-api/Client.h | 1 + 2 files changed, 5 insertions(+) diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index 193c7e2..4d891fc 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -860,6 +860,9 @@ class Client::JsonChat final : public td::Jsonable { if (supergroup_info->slow_mode_delay != 0) { object("slow_mode_delay", supergroup_info->slow_mode_delay); } + if (supergroup_info->unrestrict_boost_count != 0) { + object("unrestrict_boost_count", supergroup_info->unrestrict_boost_count); + } if (supergroup_info->linked_chat_id != 0) { object("linked_chat_id", supergroup_info->linked_chat_id); } @@ -6147,6 +6150,7 @@ void Client::on_update(object_ptr result) { 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->unrestrict_boost_count = full_info->unrestrict_boost_count_; supergroup_info->linked_chat_id = full_info->linked_chat_id_; supergroup_info->location = std::move(full_info->location_); supergroup_info->has_hidden_members = full_info->has_hidden_members_; diff --git a/telegram-bot-api/Client.h b/telegram-bot-api/Client.h index 1e860a3..d206156 100644 --- a/telegram-bot-api/Client.h +++ b/telegram-bot-api/Client.h @@ -811,6 +811,7 @@ class Client final : public WebhookActor::Callback { int64 sticker_set_id = 0; int32 date = 0; int32 slow_mode_delay = 0; + int32 unrestrict_boost_count = 0; int64 linked_chat_id = 0; object_ptr location; object_ptr status;