Skip to content

Commit 59ccc4d

Browse files
committed
Documentation fixes
1 parent ccadabc commit 59ccc4d

5 files changed

Lines changed: 20 additions & 18 deletions

File tree

pyrogram/filters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ async def video_chat_started_filter(_, __, m: Message):
642642

643643

644644
video_chat_started = create(video_chat_started_filter)
645-
"""Filter messages for started voice chats"""
645+
"""Filter messages for started video chats"""
646646

647647

648648
# endregion
@@ -653,7 +653,7 @@ async def video_chat_ended_filter(_, __, m: Message):
653653

654654

655655
video_chat_ended = create(video_chat_ended_filter)
656-
"""Filter messages for ended voice chats"""
656+
"""Filter messages for ended video chats"""
657657

658658

659659
# endregion

pyrogram/methods/bots/get_chat_menu_button.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ async def get_chat_menu_button(
3030
) -> "types.MenuButton":
3131
"""Get the current value of the bot's menu button in a private chat, or the default menu button.
3232
33-
chat_id (``int`` | ``str``):
34-
Unique identifier (int) or username (str) of the target chat.
35-
If not specified, default bot's menu button will be returned.
33+
Parameters:
34+
chat_id (``int`` | ``str``):
35+
Unique identifier (int) or username (str) of the target chat.
36+
If not specified, default bot's menu button will be returned.
3637
"""
3738

3839
if chat_id:

pyrogram/methods/bots/set_chat_menu_button.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,14 @@ async def set_chat_menu_button(
3131
) -> bool:
3232
"""Change the bot's menu button in a private chat, or the default menu button.
3333
34-
chat_id (``int`` | ``str``, *optional*):
35-
Unique identifier (int) or username (str) of the target chat.
36-
If not specified, default bot's menu button will be changed.
37-
38-
menu_button (:obj:`~pyrogram.types.MenuButton`, *optional*):
39-
The new bot's menu button.
40-
Defaults to :obj:`~pyrogram.types.MenuButtonDefault`.
34+
Parameters:
35+
chat_id (``int`` | ``str``, *optional*):
36+
Unique identifier (int) or username (str) of the target chat.
37+
If not specified, default bot's menu button will be changed.
38+
39+
menu_button (:obj:`~pyrogram.types.MenuButton`, *optional*):
40+
The new bot's menu button.
41+
Defaults to :obj:`~pyrogram.types.MenuButtonDefault`.
4142
"""
4243

4344
await self.invoke(

pyrogram/types/user_and_chats/chat_event_filter.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ class ChatEventFilter(Object):
6666
True, if members leaving events should be returned.
6767
Defaults to False.
6868
69-
voice_chats (``bool``, *optional*):
70-
True, if voice chats events should be returned.
69+
video_chats (``bool``, *optional*):
70+
True, if video chats events should be returned.
7171
Defaults to False.
7272
"""
7373

@@ -83,7 +83,7 @@ def __init__(
8383
edited_messages: bool = False,
8484
pinned_messages: bool = False,
8585
leaving_members: bool = False,
86-
voice_chats: bool = False
86+
video_chats: bool = False
8787
):
8888
super().__init__()
8989

@@ -97,7 +97,7 @@ def __init__(
9797
self.edited_messages = edited_messages
9898
self.pinned_messages = pinned_messages
9999
self.leaving_members = leaving_members
100-
self.voice_chats = voice_chats
100+
self.video_chats = video_chats
101101

102102
def write(self) -> "raw.base.ChannelAdminLogEventsFilter":
103103
join = False
@@ -152,7 +152,7 @@ def write(self) -> "raw.base.ChannelAdminLogEventsFilter":
152152
if self.leaving_members:
153153
leave = True
154154

155-
if self.voice_chats:
155+
if self.video_chats:
156156
group_call = True
157157

158158
return raw.types.ChannelAdminLogEventsFilter(

pyrogram/types/user_and_chats/chat_privileges.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class ChatPrivileges(Object):
3434
3535
can_manage_video_chats (``bool``, *optional*):
3636
Groups and supergroups only.
37-
True, if the administrator can manage voice chats (also called group calls).
37+
True, if the administrator can manage video chats (also called group calls).
3838
3939
can_restrict_members (``bool``, *optional*):
4040
True, if the administrator can restrict, ban or unban chat members.

0 commit comments

Comments
 (0)