MadelineProtoDocs/old_docs/API_docs_v104/constructors/help.termsOfService.md
2019-12-27 18:46:25 +01:00

1.4 KiB

title description image redirect_from
help.termsOfService Info about the latest telegram Terms Of Service https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png /API_docs/constructors/help_termsOfService.html

Constructor: help.termsOfService

Back to constructors index

Info about the latest telegram Terms Of Service

Attributes:

Name Type Required Description
popup Bool Optional Whether a prompt must be showed to the user, in order to accept the new terms.
id DataJSON Yes ID of the new terms
text string Yes Text of the new terms
entities Array of MessageEntity Yes Entities
min_age_confirm int Optional Minimum age required to sign up to telegram, the user must confirm that they is older than the minimum age.

Type: help.TermsOfService

Example:

$help.termsOfService = ['_' => 'help.termsOfService', 'popup' => Bool, 'id' => DataJSON, 'text' => 'string', 'entities' => [MessageEntity, MessageEntity], 'min_age_confirm' => int];

Or, if you're into Lua:

help.termsOfService={_='help.termsOfService', popup=Bool, id=DataJSON, text='string', entities={MessageEntity}, min_age_confirm=int}