1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-16 00:16:54 +01:00
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 |
|----------|:-------------:|:--------:|------------:|
|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}
```