UNPKG

koishi-plugin-adapter-telegram-ex

Version:
18 lines (17 loc) 600 B
import { Dict } from 'koishi'; import * as Telegram from './types'; import { TelegramBot } from '.'; declare type TLAssetType = 'photo' | 'audio' | 'document' | 'video' | 'animation'; export declare class Sender { private bot; private chatId; errors: Error[]; results: Telegram.Message[]; currAssetType: TLAssetType; payload: Dict; constructor(bot: TelegramBot, chatId: string); static from(bot: TelegramBot, chatId: string): (content: string) => Promise<string[]>; sendAsset: () => Promise<void>; sendMessage(content: string): Promise<string[]>; } export {};