MadelineProtoDocs/old_docs/API_docs_v109/constructors/auth.authorization.md

41 lines
939 B
Markdown
Raw Normal View History

2020-03-06 12:24:14 +01:00
---
title: auth.authorization
description: Contains user authorization info.
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/auth_authorization.html
---
# Constructor: auth.authorization
[Back to constructors index](index.md)
Contains user authorization info.
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|tmp\_sessions|[int](../types/int.md) | Optional|Temporary [passport](https://core.telegram.org/passport) sessions|
|user|[User](../types/User.md) | Optional|Info on authorized 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}
```