Layer 224
HelpAppUpdateObj
An update is available for the application.
constructor
help.appUpdate#ccbbce30 flags:# can_not_skip:flags.0?true id:int version:string text:string entities:Vector<MessageEntity> document:flags.1?Document url:flags.2?string sticker:flags.3?Document = help.AppUpdate;
Parameters
| Name | Type | Description |
|---|---|---|
| CanNotSkip | flags.0?true | Unskippable, the new info must be shown to the user (with a popup or something else) |
| Id | int | Update ID |
| Version | string | New version name |
| Text | string | Text description of the update |
| Entities | Vector<MessageEntity> | Message entities for styled text |
| Document | flags.1?Document | Application binary |
| Url | flags.2?string | Application download URL |
| Sticker | flags.3?Document | Associated sticker |
Returns
help.AppUpdateGogram Example
// Creating HelpAppUpdateObj constructor obj := &tg.HelpAppUpdateObj{ Id: 42, Version: "Hello, World!", Text: "Hello, World!", Entities: []tg.MessageEntity{&tg.MessageEntityBold{Offset: 0, Length: 11}}, // Optional fields: // CanNotSkip: true, // Document: &tg.Document{}, // Url: "Hello, World!", // Sticker: &tg.Document{}, }