You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+11-2Lines changed: 11 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,16 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
5
5
6
6
## [Unreleased]
7
7
### Notes
8
-
-[:ledger: View file changes][Unreleased]
9
-
### Added
8
+
-[:ledger: View file changes][Unreleased] ∙ [:page_with_curl: DB migration script][0.80.0-sql-migration]
9
+
- This update adds support for [Bot API 6.3](https://core.telegram.org/bots/api#november-5-2022) (@TiiFuchs)
10
+
### Added
11
+
- Added the field `is_forum` to the class `Chat`.
12
+
- Added the fields `is_topic_message` and `message_thread_id` to the class `Message` to allow detection of messages belonging to a forum topic and their message thread identifier.
13
+
- Added the classes `ForumTopicCreated`, `ForumTopicClosed`, and `ForumTopicReopened` and the fields `forum_topic_created`, `forum_topic_closed`, and `forum_topic_reopened` to the class `Message`.
14
+
- Added the field `can_manage_topics` to the classes `ChatAdministratorRights`, `ChatPermissions`, `ChatMemberAdministrator`, and `ChatMemberRestricted`.
15
+
- Added the methods `createForumTopic`, `editForumTopic`, `closeForumTopic`, `reopenForumTopic`, `deleteForumTopic`, `unpinAllForumTopicMessages`, and `getForumTopicIconStickers` for forum topic management.
16
+
- Added support for Multiple Usernames via the field `active_usernames` in the class `Chat`.
17
+
- Added the field `emoji_status_custom_emoji_id` to the class `Chat`.
10
18
### Changed
11
19
### Deprecated
12
20
### Removed
@@ -603,6 +611,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
[](https://telegram.me/PHP_Telegram_Bot_Support)
Copy file name to clipboardExpand all lines: src/Entities/Chat.php
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,10 @@
24
24
* @method string getUsername() Optional. Username, for private chats, supergroups and channels if available
25
25
* @method string getFirstName() Optional. First name of the other party in a private chat
26
26
* @method string getLastName() Optional. Last name of the other party in a private chat
27
+
* @method bool getIsForum() Optional. True, if the supergroup chat is a forum (has topics enabled)
27
28
* @method ChatPhoto getPhoto() Optional. Chat photo. Returned only in getChat.
29
+
* @method string[] getActiveUsernames() Optional. If non-empty, the list of all active chat usernames; for private chats, supergroups and channels. Returned only in getChat.
30
+
* @method string getEmojiStatusCustomEmojiId() Optional. Custom emoji identifier of emoji status of the other party in a private chat. Returned only in getChat.
28
31
* @method string getBio() Optional. Bio of the other party in a private chat. Returned only in getChat.
29
32
* @method bool getHasPrivateForwards() Optional. True, if privacy settings of the other party in the private chat allows to use tg://user?id=<user_id> links only in chats with the user. Returned only in getChat.
30
33
* @method bool getHasRestrictedVoiceAndVideoMessages() Optional. True, if the privacy settings of the other party restrict sending voice and video note messages in the private chat. Returned only in getChat.
Copy file name to clipboardExpand all lines: src/Entities/ChatAdministratorRights.php
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@
16
16
* @method bool getCanPostMessages() Optional. True, if the administrator can post in the channel; channels only
17
17
* @method bool getCanEditMessages() Optional. True, if the administrator can edit messages of other users and can pin messages; channels only
18
18
* @method bool getCanPinMessages() Optional. True, if the user is allowed to pin messages; groups and supergroups only
19
+
* @method bool getCanManageTopics() Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only
19
20
*
20
21
* @method $this setIsAnonymous(bool $is_anonymous) True, if the user's presence in the chat is hidden
21
22
* @method $this setCanManageChat(bool $can_manage_chat) True, if the administrator can access the chat event log, chat statistics, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege
@@ -28,6 +29,7 @@
28
29
* @method $this setCanPostMessages(bool $can_post_messages) Optional. True, if the administrator can post in the channel; channels only
29
30
* @method $this setCanEditMessages(bool $can_edit_messages) Optional. True, if the administrator can edit messages of other users and can pin messages; channels only
30
31
* @method $this setCanPinMessages(bool $can_pin_messages) Optional. True, if the user is allowed to pin messages; groups and supergroups only
32
+
* @method $this setCanManageTopics(bool $can_manage_topics) Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only
Copy file name to clipboardExpand all lines: src/Entities/ChatMember/ChatMemberAdministrator.php
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -13,18 +13,19 @@
13
13
* @method string getStatus() The member's status in the chat, always “administrator”
14
14
* @method User getUser() Information about the user
15
15
* @method bool getCanBeEdited() True, if the bot is allowed to edit administrator privileges of that user
16
-
* @method string getCustomTitle() Custom title for this user
17
16
* @method bool getIsAnonymous() True, if the user's presence in the chat is hidden
18
17
* @method bool getCanManageChat() True, if the administrator can access the chat event log, chat statistics, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege
19
-
* @method bool getCanPostMessages() True, if the administrator can post in the channel; channels only
20
-
* @method bool getCanEditMessages() True, if the administrator can edit messages of other users and can pin messages; channels only
21
18
* @method bool getCanDeleteMessages() True, if the administrator can delete messages of other users
22
19
* @method bool getCanManageVideoChats() True, if the administrator can manage video chats
23
20
* @method bool getCanRestrictMembers() True, if the administrator can restrict, ban or unban chat members
24
21
* @method bool getCanPromoteMembers() True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by the user)
25
22
* @method bool getCanChangeInfo() True, if the user is allowed to change the chat title, photo and other settings
26
23
* @method bool getCanInviteUsers() True, if the user is allowed to invite new users to the chat
27
-
* @method bool getCanPinMessages() True, if the user is allowed to pin messages; groups and supergroups only
24
+
* @method bool getCanPostMessages() Optional. True, if the administrator can post in the channel; channels only
25
+
* @method bool getCanEditMessages() Optional. True, if the administrator can edit messages of other users and can pin messages; channels only
26
+
* @method bool getCanPinMessages() Optional. True, if the user is allowed to pin messages; groups and supergroups only
27
+
* @method bool getCanManageTopics() Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only
28
+
* @method string getCustomTitle() Custom title for this user
28
29
*/
29
30
class ChatMemberAdministrator extends Entity implements ChatMember
Copy file name to clipboardExpand all lines: src/Entities/ChatPermissions.php
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@
24
24
* @method bool getCanChangeInfo() Optional. True, if the user is allowed to change the chat title, photo and other settings. Ignored in public supergroups
25
25
* @method bool getCanInviteUsers() Optional. True, if the user is allowed to invite new users to the chat
26
26
* @method bool getCanPinMessages() Optional. True, if the user is allowed to pin messages. Ignored in public supergroups
27
+
* @method bool getCanManageTopics() Optional. True, if the user is allowed to create forum topics. If omitted defaults to the value of can_pin_messages
0 commit comments