MadelineProtoDocs/docs/API_docs/constructors/auth_exportedAuthorization.md
Daniil Gentili f73c175203 Update docs
2018-12-26 01:56:50 +00:00

46 lines
984 B
Markdown

---
title: auth.exportedAuthorization
description: Exported authorization
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: auth.exportedAuthorization
[Back to constructors index](index.md)
Exported authorization
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|id|[int](../types/int.md) | Yes|ID|
|bytes|[bytes](../types/bytes.md) | Yes|Bytes|
### Type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md)
### Example:
```php
$auth_exportedAuthorization = ['_' => 'auth.exportedAuthorization', 'id' => int, 'bytes' => 'bytes'];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "auth.exportedAuthorization", "id": int, "bytes": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```
Or, if you're into Lua:
```lua
auth_exportedAuthorization={_='auth.exportedAuthorization', id=int, bytes='bytes'}
```