From e7b81da50b9b7d1ae7ac5f60de978ef97e14d944 Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 14 Feb 2024 14:06:55 +0300 Subject: [PATCH] Make story management rights non-optional. --- telegram-bot-api/Client.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index 646c38f..e0ace90 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -11782,11 +11782,9 @@ void Client::json_store_administrator_rights(td::JsonObjectScope &object, const } object("can_promote_members", td::JsonBool(rights->can_promote_members_)); object("can_manage_video_chats", td::JsonBool(rights->can_manage_video_chats_)); - if (chat_type == ChatType::Channel) { - object("can_post_stories", td::JsonBool(rights->can_post_stories_)); - object("can_edit_stories", td::JsonBool(rights->can_edit_stories_)); - object("can_delete_stories", td::JsonBool(rights->can_delete_stories_)); - } + object("can_post_stories", td::JsonBool(rights->can_post_stories_)); + object("can_edit_stories", td::JsonBool(rights->can_edit_stories_)); + object("can_delete_stories", td::JsonBool(rights->can_delete_stories_)); object("is_anonymous", td::JsonBool(rights->is_anonymous_)); }