From 9a745363cab4e9ca37cb4387cf47cabed69c4b5c Mon Sep 17 00:00:00 2001 From: AEIMS <66196824+aeims@users.noreply.github.com> Date: Sun, 4 May 2025 19:49:53 +0330 Subject: [PATCH] adding docstring for open_url seems needed other args had descriptions so I felt the urge to write some too. --- telethon/tl/custom/message.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/telethon/tl/custom/message.py b/telethon/tl/custom/message.py index 1e94a1f0..6a793091 100644 --- a/telethon/tl/custom/message.py +++ b/telethon/tl/custom/message.py @@ -955,7 +955,13 @@ class Message(ChatGetter, SenderGetter, TLObject): button to transfer ownership), if your account has 2FA enabled, you need to provide your account's password. Otherwise, `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: .. code-block:: python