Skip to main content

storyItem

Represents a story.

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

Implements StoryItem.

Fields

NameTypeRequiredDescription
PinnedboolWhether this story is pinned on the user's profile
PublicboolWhether this story is public and can be viewed by everyone
CloseFriendsboolWhether this story can only be viewed by our close friends, see here » for more info
MinboolFull 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.
NoforwardsboolWhether 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).
EditedboolIndicates whether the story was edited.
ContactsboolWhether this story can only be viewed by our contacts
SelectedContactsboolWhether this story can only be viewed by a select list of our contacts
Outboolindicates whether we sent this story.
IDintyesID of the story.
DateintyesWhen was the story posted.
FromIDPeerClassSender of the story.
FwdFromStoryFwdHeaderFor reposted stories », contains info about the original story.
ExpireDateintyesWhen does the story expire.
CaptionstringStory caption.
Entities[]MessageEntityClassMessage entities for styled text
MediaMessageMediaClassyesStory media.
MediaAreas[]MediaAreaClassList of media areas, see here » for more info on media areas.
Privacy[]PrivacyRuleClassPrivacy rules indicating who can and can't view this story
ViewsStoryViewsView date and reaction information
SentReactionReactionClassThe reaction we sent.
Albums[]intAlbums this story is part of.
MusicDocumentClassMusic field of StoryItem.

References