storyItem
Represents a story.
type tg.StoryItem struct { /* ... */ }
Implements StoryItem.
Fields
| Name | Type | Required | Description |
|---|---|---|---|
Pinned | bool | — | Whether this story is pinned on the user's profile |
Public | bool | — | Whether this story is public and can be viewed by everyone |
CloseFriends | bool | — | Whether this story can only be viewed by our close friends, see here » for more info |
Min | bool | — | Full information about this story was omitted for space and performance reasons; use stories.getStoriesByID to fetch full info about this story when and if needed. |
Noforwards | bool | — | 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 | bool | — | Indicates whether the story was edited. |
Contacts | bool | — | Whether this story can only be viewed by our contacts |
SelectedContacts | bool | — | Whether this story can only be viewed by a select list of our contacts |
Out | bool | — | indicates whether we sent this story. |
ID | int | yes | ID of the story. |
Date | int | yes | When was the story posted. |
FromID | PeerClass | — | Sender of the story. |
FwdFrom | StoryFwdHeader | — | For reposted stories », contains info about the original story. |
ExpireDate | int | yes | When does the story expire. |
Caption | string | — | Story caption. |
Entities | []MessageEntityClass | — | Message entities for styled text |
Media | MessageMediaClass | yes | Story media. |
MediaAreas | []MediaAreaClass | — | List of media areas, see here » for more info on media areas. |
Privacy | []PrivacyRuleClass | — | Privacy rules indicating who can and can't view this story |
Views | StoryViews | — | View date and reaction information |
SentReaction | ReactionClass | — | The reaction we sent. |
Albums | []int | — | Albums this story is part of. |
Music | DocumentClass | — | Music field of StoryItem. |
References
- Official documentation
- Generated Go reference
- TL definition:
storyItem#16a4b93c