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

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

Cross-runtime JavaScript library for building Telegram clients
Latest
class StoryManager
import { StoryManager } from "https://deno.land/x/mtkruto@0.6.2/client/4_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: Api.Update): update is StoryManagerUpdate