|
| 1 | +<?php |
| 2 | + |
| 3 | +namespace Longman\TelegramBot\Entities; |
| 4 | + |
| 5 | +/** |
| 6 | + * Represents the rights of an administrator in a chat. |
| 7 | + * |
| 8 | + * @method bool getIsAnonymous() True, if the user's presence in the chat is hidden |
| 9 | + * @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 |
| 10 | + * @method bool getCanDeleteMessages() True, if the administrator can delete messages of other users |
| 11 | + * @method bool getCanManageVideoChats() True, if the administrator can manage video chats |
| 12 | + * @method bool getCanRestrictMembers() True, if the administrator can restrict, ban or unban chat members |
| 13 | + * @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) |
| 14 | + * @method bool getCanChangeInfo() True, if the user is allowed to change the chat title, photo and other settings |
| 15 | + * @method bool getCanInviteUsers() True, if the user is allowed to invite new users to the chat |
| 16 | + * @method bool getCanPostMessages() Optional. True, if the administrator can post in the channel; channels only |
| 17 | + * @method bool getCanEditMessages() Optional. True, if the administrator can edit messages of other users and can pin messages; channels only |
| 18 | + * @method bool getCanPinMessages() Optional. True, if the user is allowed to pin messages; groups and supergroups only |
| 19 | + * |
| 20 | + * @method $this setIsAnonymous(bool $is_anonymous) True, if the user's presence in the chat is hidden |
| 21 | + * @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 |
| 22 | + * @method $this setCanDeleteMessages(bool $can_delete_messages) True, if the administrator can delete messages of other users |
| 23 | + * @method $this setCanManageVideoChats(bool $can_manage_video_chats) True, if the administrator can manage video chats |
| 24 | + * @method $this setCanRestrictMembers(bool $can_restrict_members) True, if the administrator can restrict, ban or unban chat members |
| 25 | + * @method $this setCanPromoteMembers(bool $can_promote_members) 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) |
| 26 | + * @method $this setCanChangeInfo(bool $can_change_info) True, if the user is allowed to change the chat title, photo and other settings |
| 27 | + * @method $this setCanInviteUsers(bool $can_invite_users) True, if the user is allowed to invite new users to the chat |
| 28 | + * @method $this setCanPostMessages(bool $can_post_messages) Optional. True, if the administrator can post in the channel; channels only |
| 29 | + * @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 | + * @method $this setCanPinMessages(bool $can_pin_messages) Optional. True, if the user is allowed to pin messages; groups and supergroups only |
| 31 | + */ |
| 32 | +class ChatAdministratorRights extends Entity |
| 33 | +{ |
| 34 | + |
| 35 | +} |
0 commit comments