request_url_auth()¶
- async Client.request_url_auth()¶
Request URL authorization for a login button or link preview.
Usable by Users Bots- Parameters:
url (
str) – The URL to authorize.chat_id (
int|str, optional) – Chat containing the inline keyboard with the URL auth button.message_id (
int, optional) – The message with the button.button_id (
int, optional) – The button ID.in_app_origin (
str, optional) – Origin for in-app browser.
- Returns:
UrlAuthResult– The URL auth result.
Example
result = await app.request_url_auth(url="https://example.com")