adding docstring for open_url seems needed

other args had descriptions so I felt the urge to write some too.
This commit is contained in:
AEIMS 2025-05-04 19:49:53 +03:30 committed by GitHub
parent d5c1431398
commit 9a745363ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -955,7 +955,13 @@ class Message(ChatGetter, SenderGetter, TLObject):
button to transfer ownership), if your account has 2FA enabled, button to transfer ownership), if your account has 2FA enabled,
you need to provide your account's password. Otherwise, you need to provide your account's password. Otherwise,
`teltehon.errors.PasswordHashInvalidError` is raised. `teltehon.errors.PasswordHashInvalidError` is raised.
open_url (`bool`):
When clicking on an inline keyboard URL button :tl:`KeyboardButtonUrl`
By default it will return URL of the button, passing ``click(open_url=True)``
will lunch the default browser with given URL of the button and
return `True` on success.
Example: Example:
.. code-block:: python .. code-block:: python