Layer 220
StoryItem
Represents a story.
constructor
storyItem#edf164f1 flags:# pinned:flags.5?true public:flags.7?true close_friends:flags.8?true min:flags.9?true noforwards:flags.10?true edited:flags.11?true contacts:flags.12?true selected_contacts:flags.13?true out:flags.16?true id:int date:int from_id:flags.18?Peer fwd_from:flags.17?StoryFwdHeader expire_date:int caption:flags.0?string entities:flags.1?Vector<MessageEntity> media:MessageMedia media_areas:flags.14?Vector<MediaArea> privacy:flags.2?Vector<PrivacyRule> views:flags.3?StoryViews sent_reaction:flags.15?Reaction albums:flags.19?Vector<int> = StoryItem;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Pinned | flags.5?true | Whether this story is pinned on the user's profile |
| Public | flags.7?true | Whether this story is public and can be viewed by everyone |
| CloseFriends | flags.8?true | Whether this story can only be viewed by our close friends, see here for more info |
| Min | flags.9?true | Full information about this story was omitted for space and performance reasons; use stories. get Stories By ID to fetch full info about this story when and if needed. |
| Noforwards | flags.10?true | Whether this story is protected and thus cannot be forwarded; clients should also prevent users from saving attached media (i. e. videos should only be streamed, photos should be kept in RAM, et cetera). |
| Edited | flags.11?true | Indicates whether the story was edited. |
| Contacts | flags.12?true | Whether this story can only be viewed by our contacts |
| SelectedContacts | flags.13?true | Whether this story can only be viewed by a select list of our contacts |
| Out | flags.16?true | indicates whether we sent this story. |
| Id | int | ID of the story. |
| Date | int | When was the story posted. |
| FromId | flags.18?Peer | Sender of the story. |
| FwdFrom | flags.17?StoryFwdHeader | For reposted stories, contains info about the original story. |
| ExpireDate | int | When does the story expire. |
| Caption | flags.0?string | Story caption. |
| Entities | Vector<MessageEntity> | Message entities for styled text |
| Media | MessageMedia | Story media. |
| MediaAreas | Vector<MediaArea> | List of media areas, see here for more info on media areas. |
| Privacy | Vector<PrivacyRule> | Privacy rules indicating who can and can't view this story |
| Views | flags.3?StoryViews | View date and reaction information |
| SentReaction | flags.15?Reaction | The reaction we sent. |
| Albums | Vector<int> | Albums this story is part of. |
Returns
StoryItemGogram Example
// Creating StoryItem constructor obj := &tg.StoryItem{ Id: 0, Date: 0, ExpireDate: 0, Media: &tg.MessageMedia{}, // Optional fields: // Pinned: true, // Public: true, // CloseFriends: true, // Min: true, // ... more optional fields }