Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/2_types.ts>StoryItem_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class StoryItem_
extends _StoryItem_
import { StoryItem_ } from "https://deno.land/x/mtkruto@0.1.190/tl/2_types.ts";

Represents a story.

Constructors

new
StoryItem_(params: { pinned?: true; public?: true; close_friends?: true; min?: true; noforwards?: true; edited?: true; contacts?: true; selected_contacts?: true; out?: true; id: number; date: number; from_id?: enums.Peer; fwd_from?: enums.StoryFwdHeader; expire_date: number; caption?: string; entities?: Array<enums.MessageEntity>; media: enums.MessageMedia; media_areas?: Array<enums.MediaArea>; privacy?: Array<enums.PrivacyRule>; views?: enums.StoryViews; sent_reaction?: enums.Reaction; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
caption: string

Story caption.

optional
close_friends: true

Whether this story can only be viewed by our close friends, see here » for more info

optional
contacts: true

Whether this story can only be viewed by our contacts

date: number

When was the story posted.

optional
edited: true

Indicates whether the story was edited.

optional
entities: Array<enums.MessageEntity>
expire_date: number

When does the story expire.

optional
from_id: enums.Peer
optional
fwd_from: enums.StoryFwdHeader

For reposted stories », contains info about the original story.

id: number

ID of the story.

media: enums.MessageMedia

Story media.

optional
media_areas: Array<enums.MediaArea>

List of media areas, see here » for more info on media areas.

optional
min: true

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.

optional
noforwards: true

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).

optional
out: true

indicates whether we sent this story.

optional
pinned: true

Whether this story is pinned on the user's profile

optional
privacy: Array<enums.PrivacyRule>

Privacy rules indicating who can and can't view this story

optional
public: true

Whether this story is public and can be viewed by everyone

optional
selected_contacts: true

Whether this story can only be viewed by a select list of our contacts

optional
sent_reaction: enums.Reaction

The reaction we sent.

optional
views: enums.StoryViews

View date and reaction information

Static Properties

readonly
[name]: string
readonly
[paramDesc]: ParamDesc