MadelineProtoDocs/old_docs/API_docs_v45/constructors/auth_authorization.md

39 lines
662 B
Markdown

---
title: auth.authorization
description: Authorization
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: auth.authorization
[Back to constructors index](index.md)
Authorization
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|user|[User](../types/User.md) | Optional|User|
### Type: [auth\_Authorization](../types/auth_Authorization.md)
### Example:
```php
$auth_authorization = ['_' => 'auth.authorization', 'user' => User];
```
Or, if you're into Lua:
```lua
auth_authorization={_='auth.authorization', user=User}
```