Layer 220
HelpPromoData
A set of useful suggestions and a PSA/MTProxy sponsored peer, see here for more info.
constructor
help.promoData#8a4d87a flags:# proxy:flags.0?true expires:int peer:flags.3?Peer psa_type:flags.1?string psa_message:flags.2?string pending_suggestions:Vector<string> dismissed_suggestions:Vector<string> custom_pending_suggestion:flags.4?PendingSuggestion chats:Vector<Chat> users:Vector<User> = help.PromoData;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Proxy | flags.0?true | Set when connecting using an MTProxy that has configured an associated peer (that will be passed in peer, i. e. the channel that sponsored the MTProxy) that should be pinned on top of the chat list. |
| Expires | int | Unixtime when to re-invoke help. get Promo Data. |
| Peer | flags.3?Peer | MTProxy/PSA peer |
| PsaType | flags.1?string | For Public Service Announcement peer s, indicates the type of the PSA. |
| PsaMessage | flags.2?string | For Public Service Announcement peer s, contains the PSA itself. |
| PendingSuggestions | Vector<string> | Contains a list of pending suggestions. |
| DismissedSuggestions | Vector<string> | Contains a list of inverted suggestions. |
| CustomPendingSuggestion | flags.4?PendingSuggestion | Contains a list of custom pending suggestions. |
| Chats | Vector<Chat> | Chat info |
| Users | Vector<User> | User info |
Returns
help.PromoDataGogram Example
// Creating HelpPromoData constructor obj := &tg.HelpPromoData{ Expires: 0, PendingSuggestions: "...", DismissedSuggestions: "...", Chats: []tg.Chat{&tg.Chat{}}, Users: []tg.User{&tg.User{}}, // Optional fields: // Proxy: true, // Peer: &tg.Peer{}, // PsaType: "...", // PsaMessage: "...", // ... more optional fields }