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

41 lines
974 B
Markdown
Raw Normal View History

2020-03-06 12:24:14 +01:00
---
title: auth.exportedAuthorization
description: Data for copying of authorization between data centres.
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/auth_exportedAuthorization.html
---
# Constructor: auth.exportedAuthorization
[Back to constructors index](index.md)
Data for copying of authorization between data centres.
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|id|[int](../types/int.md) | Yes|Current user identifier|
|bytes|[bytes](../types/bytes.md) | Yes|Authorizes key|
### Type: [auth.ExportedAuthorization](../types/auth.ExportedAuthorization.md)
### Example:
```php
$auth.exportedAuthorization = ['_' => 'auth.exportedAuthorization', 'id' => int, 'bytes' => 'bytes'];
```
Or, if you're into Lua:
```lua
auth.exportedAuthorization={_='auth.exportedAuthorization', id=int, bytes='bytes'}
```