UNPKG

@curatedotfun/telegram

Version:
19 lines (18 loc) 626 B
import type { ActionArgs, DistributorPlugin } from "@curatedotfun/types"; interface TelegramConfig { botToken: string; channelId?: string; messageThreadId?: string; [key: string]: string | undefined; } export default class TelegramPlugin implements DistributorPlugin<string, TelegramConfig> { readonly type: "distributor"; private botToken; private channelId; private messageThreadId; initialize(config?: TelegramConfig): Promise<void>; distribute({ input: content, }: ActionArgs<string, TelegramConfig>): Promise<void>; private formatMessage; private sendMessage; } export {};