Skip to content

Commit

Permalink
Update code to reflect latest changes to the API documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
TiiFuchs committed Jan 12, 2023
1 parent a1b435a commit 32986ec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Layers/Generated.php
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ public function restrictChatMember(
* @param bool $can_delete_messages Pass True if the administrator can delete messages of other users
* @param bool $can_manage_video_chats Pass True if the administrator can manage video chats
* @param bool $can_restrict_members Pass True if the administrator can restrict, ban or unban chat members
* @param bool $can_promote_members Pass 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 him)
* @param bool $can_promote_members Pass True if the administrator can add new administrators with a subset of their own privileges or demote administrators that they have promoted, directly or indirectly (promoted by administrators that were appointed by him)
* @param bool $can_change_info Pass True if the administrator can change chat title, photo and other settings
* @param bool $can_invite_users Pass True if the administrator can invite new users to the chat
* @param bool $can_pin_messages Pass True if the administrator can pin messages, supergroups only
Expand Down
4 changes: 2 additions & 2 deletions src/Telegram/ChatAdministratorRights.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class ChatAdministratorRights extends Type
/** True, if the administrator can restrict, ban or unban chat members */
public bool $can_restrict_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) */
/** True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that they have promoted, directly or indirectly (promoted by administrators that were appointed by the user) */
public bool $can_promote_members;

/** True, if the user is allowed to change the chat title, photo and other settings */
Expand All @@ -55,7 +55,7 @@ class ChatAdministratorRights extends Type
* @param bool $can_delete_messages True, if the administrator can delete messages of other users
* @param bool $can_manage_video_chats True, if the administrator can manage video chats
* @param bool $can_restrict_members True, if the administrator can restrict, ban or unban chat members
* @param 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)
* @param bool $can_promote_members True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that they have promoted, directly or indirectly (promoted by administrators that were appointed by the user)
* @param bool $can_change_info True, if the user is allowed to change the chat title, photo and other settings
* @param bool $can_invite_users True, if the user is allowed to invite new users to the chat
* @param bool $can_post_messages Optional. True, if the administrator can post in the channel; channels only
Expand Down
4 changes: 2 additions & 2 deletions src/Telegram/ChatMemberAdministrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ChatMemberAdministrator extends ChatMember
/** True, if the administrator can restrict, ban or unban chat members */
public bool $can_restrict_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) */
/** True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that they have promoted, directly or indirectly (promoted by administrators that were appointed by the user) */
public bool $can_promote_members;

/** True, if the user is allowed to change the chat title, photo and other settings */
Expand Down Expand Up @@ -64,7 +64,7 @@ class ChatMemberAdministrator extends ChatMember
* @param bool $can_delete_messages True, if the administrator can delete messages of other users
* @param bool $can_manage_video_chats True, if the administrator can manage video chats
* @param bool $can_restrict_members True, if the administrator can restrict, ban or unban chat members
* @param 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)
* @param bool $can_promote_members True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that they have promoted, directly or indirectly (promoted by administrators that were appointed by the user)
* @param bool $can_change_info True, if the user is allowed to change the chat title, photo and other settings
* @param bool $can_invite_users True, if the user is allowed to invite new users to the chat
* @param bool $can_post_messages Optional. True, if the administrator can post in the channel; channels only
Expand Down

0 comments on commit 32986ec

Please sign in to comment.