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

1.5 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 Message entities for styled text
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}