mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-12-29 13:45:49 +01:00
Make story management rights non-optional.
This commit is contained in:
parent
f1b9eb8d4c
commit
e7b81da50b
@ -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("is_anonymous", td::JsonBool(rights->is_anonymous_));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user