Raw.StoryItem
Represents a story.
storyItem#79b26a24 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 = StoryItem;
export namespace Raw {
export class StoryItem {
constructor(params: {
pinned?: boolean;
public?: boolean;
closeFriends?: boolean;
min?: boolean;
noforwards?: boolean;
edited?: boolean;
contacts?: boolean;
selectedContacts?: boolean;
out?: boolean;
id: number;
date: number;
fromId?: Raw.TypePeer;
fwdFrom?: Raw.TypeStoryFwdHeader;
expireDate: number;
caption?: string;
entities?: Array<Raw.TypeMessageEntity>;
media: Raw.TypeMessageMedia;
mediaAreas?: Array<Raw.TypeMediaArea>;
privacy?: Array<Raw.TypePrivacyRule>;
views?: Raw.TypeStoryViews;
sentReaction?: Raw.TypeReaction;
}) {}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0x79b26a24
Property
pinned
: boolean or undefinedWhether this story is pinned on the user’s profile
public
: boolean or undefinedWhether this story is public and can be viewed by everyone
closeFriends
: boolean or undefinedWhether this story can only be viewed by our close friends, see here for more info
min
: boolean or undefinedFull 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
: boolean or undefinedWhether 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
: boolean or undefinedIndicates whether the story was edited.
contacts
: boolean or undefinedWhether this story can only be viewed by our contacts
selectedContacts
: boolean or undefinedWhether this story can only be viewed by a select list of our contacts
out
: boolean or undefinedIndicates whether we sent this story.
id
: numberId of the story.
date
: numberWhen was the story posted.
fromId
: Raw.TypePeer or undefinedSender of the story.
fwdFrom
: Raw.TypeStoryFwdHeader or undefinedFor reposted stories, contains info about the original story.
expireDate
: numberWhen does the story expire.
caption
: string or undefinedStory caption.
entities
: Array of Raw.TypeMessageEntity or undefinedMessage entities for styled text
media
: Raw.TypeMessageMediaStory media.
mediaAreas
: Array of Raw.TypeMediaArea or undefinedList of media areas, see here for more info on media areas.
privacy
: Array of Raw.TypePrivacyRule or undefinedPrivacy rules indicating who can and can’t view this story
views
: Raw.TypeStoryViews or undefinedView date and reaction information
sentReaction
: Raw.TypeReaction or undefinedThe reaction we sent.