Interface TermsOfService

Contains Telegram terms of service.

interface TermsOfService {
    @type: "termsOfService";
    min_user_age: number;
    show_popup?: boolean;
    text: FormattedText;
}

Properties

@type: "termsOfService"
min_user_age: number

The minimum age of a user to be able to accept the terms; 0 if age isn't restricted.

show_popup?: boolean

True, if a blocking popup with terms of service must be shown to the user.

Text of the terms of service.