MadelineProtoDocs/docs/API_docs/constructors/help.termsOfServiceUpdate.md

40 lines
1.4 KiB
Markdown
Raw Normal View History

2018-06-29 13:59:08 +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"
2018-06-29 13:59:08 +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"
2018-12-26 02:56:50 +01:00
2018-06-29 13:59:08 +02:00
### Attributes:
2018-12-26 02:56:50 +01:00
| 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|
2019-12-27 18:25:37 +01:00
|terms\_of\_service|[help.TermsOfService](../constructors/help.TermsOfService.md) | Yes|New terms of service|
2018-06-29 13:59:08 +02:00
2019-12-27 18:25:37 +01:00
### Type: [help.TermsOfServiceUpdate](../types/help.TermsOfServiceUpdate.md)
2018-06-29 13:59:08 +02:00
### Example:
```php
2019-12-27 18:25:37 +01:00
$help.termsOfServiceUpdate = ['_' => 'help.termsOfServiceUpdate', 'expires' => int, 'terms_of_service' => help.TermsOfService];
2018-06-29 13:59:08 +02:00
```
Or, if you're into Lua:
2018-06-29 13:59:08 +02:00
```lua
2019-12-27 18:25:37 +01:00
help.termsOfServiceUpdate={_='help.termsOfServiceUpdate', expires=int, terms_of_service=help.TermsOfService}
2018-06-29 13:59:08 +02:00
```