Layer 220
HelpTermsOfService
Info about the latest telegram Terms Of Service
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 |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| 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. |
Returns
help.TermsOfServiceGogram Example
// Creating HelpTermsOfService constructor obj := &tg.HelpTermsOfService{ Id: &tg.DataJson{}, Text: "...", Entities: []tg.MessageEntity{&tg.MessageEntityBold{Offset: 0, Length: 4}}, // Optional fields: // Popup: true, // MinAgeConfirm: 0, }