koishi-plugin-adapter-telegram-ex
Version:
Telegram Adapter for Koishi
18 lines (17 loc) • 600 B
TypeScript
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 {};