MadelineProto/docs/TD_docs/constructors/updateAuthState.md

45 lines
763 B
Markdown
Raw Normal View History

---
title: updateAuthState
description: User authorization state has changed
---
## Constructor: updateAuthState
[Back to constructors index](index.md)
User authorization state has changed
### Attributes:
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
|auth\_state|[AuthState](../types/AuthState.md) | Yes|New authorization state|
### Type: [Update](../types/Update.md)
### Example:
```
2017-07-23 16:33:46 +02:00
$updateAuthState = ['_' => 'updateAuthState', 'auth_state' => AuthState];
```
2017-07-23 16:11:02 +02:00
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
2017-07-23 16:33:46 +02:00
{"_": "updateAuthState", "auth_state": AuthState}
2017-07-23 16:11:02 +02:00
```
Or, if you're into Lua:
```
2017-07-23 16:33:46 +02:00
updateAuthState={_='updateAuthState', auth_state=AuthState}
```