Skip to main content

storyItem

Represents a story.

type tg.StoryItem struct { /* ... */ }

Implements StoryItem.

Fields​

NameTypeRequiredDescription
Pinnedbool—Whether this story is pinned on the user's profile
Publicbool—Whether this story is public and can be viewed by everyone
CloseFriendsbool—Whether this story can only be viewed by our close friends, see here » for more info
Minbool—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.
Noforwardsbool—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).
Editedbool—Indicates whether the story was edited.
Contactsbool—Whether this story can only be viewed by our contacts
SelectedContactsbool—Whether this story can only be viewed by a select list of our contacts
Outbool—indicates whether we sent this story.
IDintyesID of the story.
DateintyesWhen was the story posted.
FromIDPeerClass—Sender of the story.
FwdFromStoryFwdHeader—For reposted stories », contains info about the original story.
ExpireDateintyesWhen does the story expire.
Captionstring—Story caption.
Entities[]MessageEntityClass—Message entities for styled text
MediaMessageMediaClassyesStory 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
ViewsStoryViews—View date and reaction information
SentReactionReactionClass—The reaction we sent.
Albums[]int—Albums this story is part of.
MusicDocumentClass—Music field of StoryItem.

References​