import { tl } from '../../../tl/index.js'; import { ITelegramClient } from '../../client.types.js'; import { InputMediaLike, InputPeerLike, InputPrivacyRule, InputText, Story } from '../../types/index.js'; /** * Send a story * * @returns Created story */ export declare function sendStory(client: ITelegramClient, params: { /** * Peer ID to send story as * * @default `self` */ peer?: InputPeerLike; /** * Media contained in a story. Currently can only be a photo or a video. * * You can also pass TDLib and Bot API compatible File ID, * which will be wrapped in {@link InputMedia.auto} */ media: InputMediaLike | string; /** * Override caption for {@link media} */ caption?: InputText; /** * Whether to automatically pin this story to the profile */ pinned?: boolean; /** * Whether to disallow sharing this story */ forbidForwards?: boolean; /** * Interactive elements to add to the story */ interactiveElements?: tl.TypeMediaArea[]; /** * Privacy rules to apply to the story * * @default "Everyone" */ privacyRules?: InputPrivacyRule[]; /** * TTL period of the story, in seconds * * @default 86400 */ period?: number; /** * IDs of albums to add the story to */ addToAlbums?: number[]; }): Promise;