MadelineProtoDocs/old_docs/API_docs_v86/constructors/help_termsOfService.md
2019-12-27 17:48:04 +01:00

1.3 KiB

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

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}