MadelineProtoDocs/old_docs/API_docs_v100/constructors/urlAuthResultRequest.md

41 lines
1.5 KiB
Markdown
Raw Normal View History

2019-06-23 13:07:51 +02:00
---
title: urlAuthResultRequest
2019-12-27 17:48:04 +01:00
description: Details about the authorization request, for more info [click here »](https://core.telegram.org/api/url-authorization)
2019-06-23 13:07:51 +02:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: urlAuthResultRequest
[Back to constructors index](index.md)
2019-12-27 17:48:04 +01:00
Details about the authorization request, for more info [click here »](https://core.telegram.org/api/url-authorization)
2019-06-23 13:07:51 +02:00
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
2019-12-27 17:48:04 +01:00
|request\_write\_access|[Bool](../types/Bool.md) | Optional|Whether the bot would like to send messages to the user|
|bot|[User](../types/User.md) | Optional|Username of a bot, which will be used for user authorization. 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.|
|domain|[string](../types/string.md) | Yes|The domain name of the website on which the user will log in.|
2019-06-23 13:07:51 +02:00
### Type: [UrlAuthResult](../types/UrlAuthResult.md)
### Example:
```php
$urlAuthResultRequest = ['_' => 'urlAuthResultRequest', 'request_write_access' => Bool, 'bot' => User, 'domain' => 'string'];
```
Or, if you're into Lua:
```lua
urlAuthResultRequest={_='urlAuthResultRequest', request_write_access=Bool, bot=User, domain='string'}
```