diff --git a/pyrogram/types/bots_and_keyboards/request_channel_info.py b/pyrogram/types/bots_and_keyboards/request_channel_info.py index 407208a1..576bb722 100644 --- a/pyrogram/types/bots_and_keyboards/request_channel_info.py +++ b/pyrogram/types/bots_and_keyboards/request_channel_info.py @@ -36,6 +36,7 @@ class RequestChannelInfo(Object): max_quantity(``int``, *optional*): Max quantity of peers. + Defaults to None (One peer only). user_privileges (:obj:`~pyrogram.types.ChatPrivileges`, *optional*): Privileged actions that an user administrator is able to take. @@ -58,6 +59,6 @@ class RequestChannelInfo(Object): self.button_id = button_id self.is_creator = is_creator self.has_username = has_username - self.max_quantity = max_quantity + self.max_quantity = max_quantity or 1 self.user_privileges = user_privileges self.bot_privileges = bot_privileges diff --git a/pyrogram/types/bots_and_keyboards/request_chat_info.py b/pyrogram/types/bots_and_keyboards/request_chat_info.py index cd5ab91e..005f6f5c 100644 --- a/pyrogram/types/bots_and_keyboards/request_chat_info.py +++ b/pyrogram/types/bots_and_keyboards/request_chat_info.py @@ -42,6 +42,7 @@ class RequestChatInfo(Object): max_quantity(``int``, *optional*): Max quantity of peers. + Defaults to None (One peer only). user_privileges (:obj:`~pyrogram.types.ChatPrivileges`, *optional*): Privileged actions that an user administrator is able to take. @@ -68,6 +69,6 @@ class RequestChatInfo(Object): self.is_bot_participant = is_bot_participant self.has_username = has_username self.has_forum = has_forum - self.max_quantity = max_quantity + self.max_quantity = max_quantity or 1 self.user_privileges = user_privileges self.bot_privileges = bot_privileges diff --git a/pyrogram/types/bots_and_keyboards/request_user_info.py b/pyrogram/types/bots_and_keyboards/request_user_info.py index 25c18f3d..0bf96693 100644 --- a/pyrogram/types/bots_and_keyboards/request_user_info.py +++ b/pyrogram/types/bots_and_keyboards/request_user_info.py @@ -34,6 +34,7 @@ class RequestUserInfo(Object): max_quantity(``int``, *optional*): Max quantity of peers. + Defaults to None (One peer only). """ def __init__( @@ -48,4 +49,4 @@ class RequestUserInfo(Object): self.button_id = button_id self.is_bot = is_bot self.is_premium = is_premium - self.max_quantity = max_quantity + self.max_quantity = max_quantity or 1