Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/mtkruto/client/3_story_manager.ts>StoryManager

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class StoryManager
import { StoryManager } from "https://deno.land/x/mtkruto@0.1.157/client/3_story_manager.ts";

Constructors

new
StoryManager(c: C)

Methods

addStoriesToHighlights(chatId: ID, storyIds: number[])
addStoryToHighlights(chatId: ID, storyId: number)
deleteStories(chatId: ID, storyIds: number[])
deleteStory(chatId: ID, storyId: number)
getStories(chatId: ID, storyIds: number[])
getStory(chatId: ID, storyId: number)
handleUpdate(update: StoryManagerUpdate): Promise<Update | null>
removeStoriesFromHighlights(chatId: ID, storyIds: number[])
removeStoryFromHighlights(chatId: ID, storyId: number)

Static Methods

canHandleUpdate(update: enums.Update): update is StoryManagerUpdate