MadelineProtoDocs/old_docs/API_docs_v104/constructors/help_termsOfServiceUpdate.md

40 lines
1.4 KiB
Markdown
Raw Normal View History

2019-08-15 20:25:16 +02:00
---
title: help.termsOfServiceUpdate
2019-12-27 17:48:04 +01:00
description: Info about an update of telegram's terms of service. If the terms of service are declined, then the [account.deleteAccount](../methods/account.deleteAccount.md) method should be called with the reason "Decline ToS update"
2019-08-15 20:25:16 +02:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: help.termsOfServiceUpdate
[Back to constructors index](index.md)
2019-12-27 17:48:04 +01:00
Info about an update of telegram's terms of service. If the terms of service are declined, then the [account.deleteAccount](../methods/account.deleteAccount.md) method should be called with the reason "Decline ToS update"
2019-08-15 20:25:16 +02:00
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
2019-12-27 17:48:04 +01:00
|expires|[int](../types/int.md) | Yes|New TOS updates will have to be queried using [help.getTermsOfServiceUpdate](../methods/help.getTermsOfServiceUpdate.md) in `expires` seconds|
|terms\_of\_service|[help\_TermsOfService](../types/help_TermsOfService.md) | Yes|New terms of service|
2019-08-15 20:25:16 +02:00
### Type: [help\_TermsOfServiceUpdate](../types/help_TermsOfServiceUpdate.md)
### Example:
```php
$help_termsOfServiceUpdate = ['_' => 'help.termsOfServiceUpdate', 'expires' => int, 'terms_of_service' => help_TermsOfService];
```
Or, if you're into Lua:
```lua
help_termsOfServiceUpdate={_='help.termsOfServiceUpdate', expires=int, terms_of_service=help_TermsOfService}
```