pyrofork: Add privacy_policy_url field to class BotInfo

Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
wulan17 2024-08-18 20:23:38 +07:00
parent cbd632c600
commit 945290692e
No known key found for this signature in database
GPG key ID: 318CD6CD3A6AC0A5

View file

@ -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)
)