
    Yi                     B    S r SSKJr  SSKJr  SSKJr   " S S\5      rg)zCThis module contains an object that represents a Telegram LoginUrl.    )Optional)TelegramObject)JSONDictc                   r   ^  \ rS rSrSrSr   SSS.S\S\\   S\\   S	\\   S
\\	   4
U 4S jjjjr
SrU =r$ )LoginUrl   as  This object represents a parameter of the inline keyboard button used to automatically
authorize a user. Serves as a great replacement for the Telegram Login Widget when the user is
coming from Telegram. All the user needs to do is tap/click a button and confirm that they want
to log in. Telegram apps support these buttons as of version 5.7.

Sample bot: `@discussbot <https://t.me/discussbot>`_

Objects of this class are comparable in terms of equality. Two objects of this class are
considered equal, if their :attr:`url` is equal.

Note:
    You must always check the hash of the received data to verify the authentication
    and the integrity of the data as described in
    `Checking authorization <https://core.telegram.org/widgets/login#checking-authorization>`_

Args:
    url (:obj:`str`): An HTTPS URL to be opened with user authorization data added to the query
        string when the button is pressed. If the user refuses to provide authorization data,
        the original URL without information about the user will be opened. The data added is
        the same as described in
        `Receiving authorization data
        <https://core.telegram.org/widgets/login#receiving-authorization-data>`_.
    forward_text (:obj:`str`, optional): New text of the button in forwarded messages.
    bot_username (:obj:`str`, optional): Username of a bot, which will be used for user
        authorization. See
        `Setting up a bot <https://core.telegram.org/widgets/login#setting-up-a-bot>`_
        for more details. If not specified, the current
        bot's username will be assumed. The url's domain must be the same as the domain linked
        with the bot. See
        `Linking your domain to the bot
        <https://core.telegram.org/widgets/login#linking-your-domain-to-the-bot>`_
        for more details.
    request_write_access (:obj:`bool`, optional): Pass :obj:`True` to request the permission
        for your bot to send messages to the user.

Attributes:
    url (:obj:`str`): An HTTPS URL to be opened with user authorization data added to the query
        string when the button is pressed. If the user refuses to provide authorization data,
        the original URL without information about the user will be opened. The data added is
        the same as described in
        `Receiving authorization data
        <https://core.telegram.org/widgets/login#receiving-authorization-data>`_.
    forward_text (:obj:`str`): Optional. New text of the button in forwarded messages.
    bot_username (:obj:`str`): Optional. Username of a bot, which will be used for user
        authorization. See
        `Setting up a bot <https://core.telegram.org/widgets/login#setting-up-a-bot>`_
        for more details. If not specified, the current
        bot's username will be assumed. The url's domain must be the same as the domain linked
        with the bot. See
        `Linking your domain to the bot
        <https://core.telegram.org/widgets/login#linking-your-domain-to-the-bot>`_
        for more details.
    request_write_access (:obj:`bool`): Optional. Pass :obj:`True` to request the permission
        for your bot to send messages to the user.

)bot_usernameforward_textrequest_write_accessurlN
api_kwargsr   r
   r	   r   r   c                   > [         TU ]  US9  Xl        X l        X0l        X@l        U R                  4U l        U R                  5         g )Nr   )super__init__r   r
   r	   r   	_id_attrs_freeze)selfr   r
   r	   r   r   	__class__s         =/app/.venv/lib/python3.13/site-packages/telegram/_loginurl.pyr   LoginUrl.__init__V   sB     	J/+7+74H!((    )r   r	   r
   r   r   )NNN)__name__
__module____qualname____firstlineno____doc__	__slots__strr   boolr   r   __static_attributes____classcell__)r   s   @r   r   r      sq    7r PI
 '+&*/3 *. sm sm	
 'tn X& r   r   N)r   typingr   telegram._telegramobjectr   telegram._utils.typesr   r    r   r   <module>r'      s"   & J  3 *O~ Or   