MadelineProtoDocs/old_docs/API_docs_v102/constructors/auth_authorization.md
2019-06-24 15:45:02 +02:00

40 lines
772 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 |
|----------|---------------|----------|-------------|
|tmp\_sessions|[int](../types/int.md) | Optional|Temporary sessions|
|user|[User](../types/User.md) | Optional|User|
### Type: [auth\_Authorization](../types/auth_Authorization.md)
### Example:
```php
$auth_authorization = ['_' => 'auth.authorization', 'tmp_sessions' => int, 'user' => User];
```
Or, if you're into Lua:
```lua
auth_authorization={_='auth.authorization', tmp_sessions=int, user=User}
```