From 5c1fd155900c0564d87e761b7b3b62d24335c807 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Armando=20L=C3=BCscher?= Date: Thu, 26 Oct 2023 21:54:15 +0200 Subject: [PATCH] Bot API 6.9 --- CHANGELOG.md | 2 +- src/Entities/ChatAdministratorRights.php | 6 ++++++ src/Entities/ChatMember/ChatMemberAdministrator.php | 3 +++ src/Entities/WriteAccessAllowed.php | 4 +++- 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c3c3e5b0..3fbfe888 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c ### Notes - [:ledger: View file changes][Unreleased] ∙ [:page_with_curl: DB migration script][unreleased-sql-migration] ### Added -- Bot API 6.8 (@noplanman) +- Bot API 6.8, 6.9 (@noplanman) ### Changed ### Deprecated ### Removed diff --git a/src/Entities/ChatAdministratorRights.php b/src/Entities/ChatAdministratorRights.php index b3709c82..c6c50ff5 100644 --- a/src/Entities/ChatAdministratorRights.php +++ b/src/Entities/ChatAdministratorRights.php @@ -16,6 +16,9 @@ * @method bool getCanPostMessages() Optional. True, if the administrator can post in the channel; channels only * @method bool getCanEditMessages() Optional. True, if the administrator can edit messages of other users and can pin messages; channels only * @method bool getCanPinMessages() Optional. True, if the user is allowed to pin messages; groups and supergroups only + * @method bool getCanPostStories() Optional. True, if the administrator can post stories in the channel; channels only + * @method bool getCanEditStories() Optional. True, if the administrator can edit stories posted by other users; channels only + * @method bool getCanDeleteStories() Optional. True, if the administrator can delete stories posted by other users; channels only * @method bool getCanManageTopics() Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only * * @method $this setIsAnonymous(bool $is_anonymous) True, if the user's presence in the chat is hidden @@ -29,6 +32,9 @@ * @method $this setCanPostMessages(bool $can_post_messages) Optional. True, if the administrator can post in the channel; channels only * @method $this setCanEditMessages(bool $can_edit_messages) Optional. True, if the administrator can edit messages of other users and can pin messages; channels only * @method $this setCanPinMessages(bool $can_pin_messages) Optional. True, if the user is allowed to pin messages; groups and supergroups only + * @method $this setCanPostStories(bool $can_post_stories) Optional. True, if the administrator can post stories in the channel; channels only + * @method $this setCanEditStories(bool $can_edit_stories) Optional. True, if the administrator can edit stories posted by other users; channels only + * @method $this setCanDeleteStories(bool $can_delete_stories) Optional. True, if the administrator can delete stories posted by other users; channels only * @method $this setCanManageTopics(bool $can_manage_topics) Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only */ class ChatAdministratorRights extends Entity diff --git a/src/Entities/ChatMember/ChatMemberAdministrator.php b/src/Entities/ChatMember/ChatMemberAdministrator.php index 66272e64..46a9cb35 100644 --- a/src/Entities/ChatMember/ChatMemberAdministrator.php +++ b/src/Entities/ChatMember/ChatMemberAdministrator.php @@ -24,6 +24,9 @@ * @method bool getCanPostMessages() Optional. True, if the administrator can post in the channel; channels only * @method bool getCanEditMessages() Optional. True, if the administrator can edit messages of other users and can pin messages; channels only * @method bool getCanPinMessages() Optional. True, if the user is allowed to pin messages; groups and supergroups only + * @method bool getCanPostStories() Optional. True, if the administrator can post stories in the channel; channels only + * @method bool getCanEditStories() Optional. True, if the administrator can edit stories posted by other users; channels only + * @method bool getCanDeleteStories() Optional. True, if the administrator can delete stories posted by other users; channels only * @method bool getCanManageTopics() Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only * @method string getCustomTitle() Custom title for this user */ diff --git a/src/Entities/WriteAccessAllowed.php b/src/Entities/WriteAccessAllowed.php index b0e49727..5785732e 100644 --- a/src/Entities/WriteAccessAllowed.php +++ b/src/Entities/WriteAccessAllowed.php @@ -9,7 +9,9 @@ * * @link https://core.telegram.org/bots/api#writeaccessallowed * - * @method string getWebAppName() Optional. Name of the Web App which was launched from a link + * @method bool getFromRequest() Optional. True, if the access was granted after the user accepted an explicit request from a Web App sent by the method requestWriteAccess + * @method string getWebAppName() Optional. Name of the Web App, if the access was granted when the Web App was launched from a link + * @method bool getFromAttachmentMenu() Optional. True, if the access was granted when the bot was added to the attachment or side menu */ class WriteAccessAllowed extends Entity {