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

x/mtkruto/tl/3_functions.ts>stories_sendStory_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class stories_sendStory_
extends Function_<enums.Updates>
import { stories_sendStory_ } from "https://deno.land/x/mtkruto@0.1.190/tl/3_functions.ts";

Uploads a Telegram Story.

Constructors

new
stories_sendStory_(params: { pinned?: true; noforwards?: true; fwd_modified?: true; peer: enums.InputPeer; media: enums.InputMedia; media_areas?: Array<enums.MediaArea>; caption?: string; entities?: Array<enums.MessageEntity>; privacy_rules: Array<enums.InputPrivacyRule>; random_id: bigint; period?: number; fwd_from_id?: enums.InputPeer; fwd_from_story?: number; })

Properties

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

Story caption.

optional
entities: Array<enums.MessageEntity>
optional
fwd_from_id: enums.InputPeer

If set, indicates that this story is a repost of story with ID fwd_from_story posted by the peer in fwd_from_id.

optional
fwd_from_story: number

If set, indicates that this story is a repost of story with ID fwd_from_story posted by the peer in fwd_from_id.

optional
fwd_modified: true

Set this flag when reposting stories with fwd_from_id+fwd_from_id, if the media was modified before reposting.

media: enums.InputMedia

The story media.

optional
media_areas: Array<enums.MediaArea>

Media areas associated to the story, see here » for more info.

optional
noforwards: true

If set, disables forwards, screenshots, and downloads.

peer: enums.InputPeer

The peer to send the story as.

optional
period: number

Period after which the story is moved to archive (and to the profile if pinned is set), in seconds; must be one of 6 * 3600, 12 * 3600, 86400, or 2 * 86400 for Telegram Premium users, and 86400 otherwise.

optional
pinned: true

Whether to add the story to the profile automatically upon expiration. If not set, the story will only be added to the archive, see here » for more info.

privacy_rules: Array<enums.InputPrivacyRule>

Privacy rules for the story, indicating who can or can't view the story.

random_id: bigint

Unique client message ID required to prevent message resending.

Static Properties

__F: (params: { pinned?: true; noforwards?: true; fwd_modified?: true; peer: enums.InputPeer; media: enums.InputMedia; media_areas?: Array<enums.MediaArea>; caption?: string; entities?: Array<enums.MessageEntity>; privacy_rules: Array<enums.InputPrivacyRule>; random_id: bigint; period?: number; fwd_from_id?: enums.InputPeer; fwd_from_story?: number; }) => enums.Updates
readonly
[name]: string
readonly
[paramDesc]: ParamDesc