@@ -479,26 +479,26 @@ async def set_photo(self, photo: str) -> bool:
479479 photo = photo
480480 )
481481
482- async def kick_member (
482+ async def ban_member (
483483 self ,
484484 user_id : Union [int , str ],
485485 until_date : int = 0
486486 ) -> Union ["types.Message" , bool ]:
487- """Bound method *kick_member * of :obj:`~pyrogram.types.Chat`.
487+ """Bound method *ban_member * of :obj:`~pyrogram.types.Chat`.
488488
489489 Use as a shortcut for:
490490
491491 .. code-block:: python
492492
493- client.kick_chat_member (
493+ client.ban_chat_member (
494494 chat_id=chat_id,
495495 user_id=user_id
496496 )
497497
498498 Example:
499499 .. code-block:: python
500500
501- chat.kick_member (123456789)
501+ chat.ban_member (123456789)
502502
503503 Note:
504504 In regular groups (non-supergroups), this method will only work if the "All Members Are Admins" setting is
@@ -523,7 +523,7 @@ async def kick_member(
523523 RPCError: In case of a Telegram RPC error.
524524 """
525525
526- return await self ._client .kick_chat_member (
526+ return await self ._client .ban_chat_member (
527527 chat_id = self .id ,
528528 user_id = user_id ,
529529 until_date = until_date
@@ -840,7 +840,7 @@ async def get_members(
840840 Filter used to select the kind of members you want to retrieve. Only applicable for supergroups
841841 and channels. It can be any of the followings:
842842 *"all"* - all kind of members,
843- *"kicked "* - kicked ( banned) members only,
843+ *"banned "* - banned members only,
844844 *"restricted"* - restricted members only,
845845 *"bots"* - bots only,
846846 *"recent"* - recent members only,
@@ -851,7 +851,7 @@ async def get_members(
851851 .. [1] Server limit: on supergroups, you can get up to 10,000 members for a single query and up to 200 members
852852 on channels.
853853
854- .. [2] A query string is applicable only for *"all"*, *"kicked "* and *"restricted"* filters only.
854+ .. [2] A query string is applicable only for *"all"*, *"banned "* and *"restricted"* filters only.
855855
856856 Example:
857857 .. code-block:: python
@@ -903,7 +903,7 @@ def iter_members(
903903 Filter used to select the kind of members you want to retrieve. Only applicable for supergroups
904904 and channels. It can be any of the followings:
905905 *"all"* - all kind of members,
906- *"kicked "* - kicked ( banned) members only,
906+ *"banned "* - banned members only,
907907 *"restricted"* - restricted members only,
908908 *"bots"* - bots only,
909909 *"recent"* - recent members only,
@@ -914,7 +914,7 @@ def iter_members(
914914 .. [1] Server limit: on supergroups, you can get up to 10,000 members for a single query and up to 200 members
915915 on channels.
916916
917- .. [2] A query string is applicable only for *"all"*, *"kicked "* and *"restricted"* filters only.
917+ .. [2] A query string is applicable only for *"all"*, *"banned "* and *"restricted"* filters only.
918918
919919 Example:
920920 .. code-block:: python
0 commit comments