UNPKG

@grammyjs/auto-chat-action

Version:

A plugin for automatic sending a chat action

8 lines (7 loc) 405 B
import { Api } from "./deps.js"; import { Action, ChatId, Signal } from "./types.js"; export declare function createChatActionsController(api: Api): { startSending(chatId: ChatId, actions: Action[], messageThreadId?: number, signal?: Signal): void; stopSending(chatId: ChatId, messageThreadId?: number): void; }; export type ChatActionsController = ReturnType<typeof createChatActionsController>;