storyItem #

Represents a story.

Layer 223

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 #

NameTypeDescription
flags#Flags, see TL conditional fields
pinnedflags.5?trueWhether this story is pinned on the user's profile
publicflags.7?trueWhether this story is public and can be viewed by everyone
close_friendsflags.8?trueWhether this story can only be viewed by our close friends, see here » for more info
minflags.9?trueFull 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.
noforwardsflags.10?trueWhether 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).
editedflags.11?trueIndicates whether the story was edited.
contactsflags.12?trueWhether this story can only be viewed by our contacts
selected_contactsflags.13?trueWhether this story can only be viewed by a select list of our contacts
outflags.16?trueindicates whether we sent this story.
idintID of the story.
dateintWhen was the story posted.
from_idflags.18?PeerSender of the story.
fwd_fromflags.17?StoryFwdHeaderFor reposted stories », contains info about the original story.
expire_dateintWhen does the story expire.
captionflags.0?stringStory caption.
entitiesflags.1?Vector<MessageEntity>Message entities for styled text
mediaMessageMediaStory media.
media_areasflags.14?Vector<MediaArea>List of media areas, see here » for more info on media areas.
privacyflags.2?Vector<PrivacyRule>Privacy rules indicating who can and can't view this story
viewsflags.3?StoryViewsView date and reaction information
sent_reactionflags.15?ReactionThe reaction we sent.
albumsflags.19?Vector<int>Albums this story is part of.
musicflags.20?DocumentIf set, the audio track played as background music for the story.

Type #

StoryItem

Privacy settings #

Telegram allows users to specify granular privacy settings, choosing which users can or can't interact with them in certain ways.

stories.getStoriesByID #

Obtain full info about a set of stories by their IDs.

Telegram Stories #

Telegram users and channels can easily post and view stories through the API.

Styled text with message entities #

How to create styled text with message entities