UNPKG

stalkee

Version:

a Telegram bot who can send voice messages via inline mode added by admin with sorting them by numbers of uses

24 lines (23 loc) 720 B
import typegram from 'typegram'; import { LaunchOptions } from '../types'; declare type AllowedCommand = 'start' | 'info' | 'add' | 'remove' | 'quote' | 'actor' | 'location'; export declare class Bot { static readonly commands: { [category: string]: AllowedCommand[]; }; private bot; private options; private botInfo; private static _buildCommands; constructor(token: string); getMe(): Promise<typegram.User>; start(options: LaunchOptions): Promise<void>; stop(): Promise<void>; reload(): Promise<void>; /** * @deprecated with Bot API 6 */ setMode(mode: string): Promise<void>; setMyCommands(): Promise<void>; } export {};