MadelineProto/docs/TD_docs/constructors/accountTtl.md

45 lines
927 B
Markdown
Raw Normal View History

---
title: accountTtl
description: Contains infotmation about period of inactivity, after which the account of currently logged in user will be automatically deleted
---
## Constructor: accountTtl
[Back to constructors index](index.md)
Contains infotmation about period of inactivity, after which the account of currently logged in user will be automatically deleted
### Attributes:
| Name | Type | Required | Description |
2017-08-20 11:05:56 +02:00
|----------|---------------|----------|-------------|
|days|[int](../types/int.md) | Yes|Number of days of inactivity before account deletion, should be from 30 up to 366|
### Type: [AccountTtl](../types/AccountTtl.md)
### Example:
```
2017-07-23 16:33:46 +02:00
$accountTtl = ['_' => 'accountTtl', 'days' => int];
```
2017-07-23 16:11:02 +02:00
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
2017-07-23 16:33:46 +02:00
{"_": "accountTtl", "days": int}
2017-07-23 16:11:02 +02:00
```
Or, if you're into Lua:
```
2017-07-23 16:33:46 +02:00
accountTtl={_='accountTtl', days=int}
```