Interface AgeVerificationParameters

Describes parameters for age verification of the current user.

interface AgeVerificationParameters {
    @type: "ageVerificationParameters";
    country: string;
    min_age: number;
    verification_bot_username: string;
}

Properties

@type: "ageVerificationParameters"
country: string

Unique name for the country or region, which legislation required age verification. May be used to get the corresponding localization key.

min_age: number

The minimum age required to view restricted content.

verification_bot_username: string

Username of the bot which main Web App may be used to verify age of the user.