Layer 224
constructor
help.termsOfService#780a0310 flags:# popup:flags.0?true id:DataJSON text:string entities:Vector<MessageEntity> min_age_confirm:flags.1?int = help.TermsOfService;

Parameters

Name Type Description
Popup flags.0?true Whether a prompt must be showed to the user, in order to accept the new terms.
Id DataJSON ID of the new terms
Text string Text of the new terms
Entities Vector<MessageEntity> Message entities for styled text
MinAgeConfirm flags.1?int Minimum age required to sign up to telegram, the user must confirm that they is older than the minimum age.

Gogram Example

// Creating HelpTermsOfServiceObj constructor
obj := &tg.HelpTermsOfServiceObj{
    Id: &tg.DataJson{},
    Text: "Hello, World!",
    Entities: []tg.MessageEntity{&tg.MessageEntityBold{Offset: 0, Length: 11}},

    // Optional fields:
    // Popup: true,
    // MinAgeConfirm: 42,
}