diff --git a/pyrogram/types/bots_and_keyboards/bot_info.py b/pyrogram/types/bots_and_keyboards/bot_info.py index c88bc92c..e1812c78 100644 --- a/pyrogram/types/bots_and_keyboards/bot_info.py +++ b/pyrogram/types/bots_and_keyboards/bot_info.py @@ -33,14 +33,18 @@ class BotInfo(Object): description (``str``): Description of the bot; + + privacy_policy_url (``str``, *optional*): + Privacy policy URL of the bot. """ - def __init__(self, name: str, about: str, description: str): + def __init__(self, name: str, about: str, description: str, privacy_policy_url: str = None): super().__init__() self.name = name self.about = about self.description = description + self.privacy_policy_url = privacy_policy_url @staticmethod @@ -48,5 +52,6 @@ class BotInfo(Object): return BotInfo( name=getattr(bot_info,"name", None), about=getattr(bot_info,"about", None), - description=getattr(bot_info,"description", None) + description=getattr(bot_info,"description", None), + privacy_policy_url=getattr(bot_info,"privacy_policy_url", None) )