Skip to content

Commit

Permalink
Update Note label for some methods
Browse files Browse the repository at this point in the history
  • Loading branch information
KurimuzonAkuma committed Dec 17, 2024
1 parent dba294d commit eee5b96
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion pyrogram/handlers/raw_update_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ class RawUpdateHandler(Handler):
You can access extra info about the chat (such as *title*, *participants_count*, etc...)
by using the IDs you find in the *update* argument (e.g.: *chats[1701277281]*).
Note:
.. note::
The following Empty or Forbidden types may exist inside the *users* and *chats* dictionaries.
They mean you have been blocked by the user or banned from the group/channel.
Expand Down
3 changes: 2 additions & 1 deletion pyrogram/methods/chats/ban_chat_member.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ async def ban_chat_member(
invite links, etc., unless unbanned first. You must be an administrator in the chat for this to work and must
have the appropriate admin rights.
Note:
.. note::
In regular groups (non-supergroups), this method will only work if the "All Members Are Admins" setting is
off in the target group. Otherwise members may only be removed by the group's creator or by the member
that added them.
Expand Down
3 changes: 2 additions & 1 deletion pyrogram/methods/chats/set_chat_title.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ async def set_chat_title(
Titles can't be changed for private chats.
You must be an administrator in the chat for this to work and must have the appropriate admin rights.
Note:
.. note::
In regular groups (non-supergroups), this method will only work if the "All Members Are Admins"
setting is off.
Expand Down
9 changes: 6 additions & 3 deletions pyrogram/types/user_and_chats/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,8 @@ async def set_title(self, title: str) -> bool:
await chat.set_title("Lounge")
Note:
.. note::
In regular groups (non-supergroups), this method will only work if the "All Members Are Admins"
setting is off.
Expand Down Expand Up @@ -924,7 +925,8 @@ async def ban_member(
await chat.ban_member(123456789)
Note:
.. note::
In regular groups (non-supergroups), this method will only work if the "All Members Are Admins" setting is
off in the target group. Otherwise members may only be removed by the group's creator or by the member
that added them.
Expand Down Expand Up @@ -1099,7 +1101,8 @@ async def join(self):
await chat.join()
Note:
.. note::
This only works for public groups, channels that have set a username or linked chats.
Returns:
Expand Down

0 comments on commit eee5b96

Please sign in to comment.