UNPKG

@xalbex/telegram-bot

Version:
23 lines (22 loc) 689 B
/** * All official methods of the Telegram Bot API without abstraction. */ export declare class TelegramBotAPI { /** * Each bot is given a unique authentication token when it is created. * The token looks something like 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11 */ private token; /** * To use this class a token is **required** and can be obtained * by talking to [@botfather](https://telegram.me/BotFather). */ constructor(token: string); /** * Make an HTTPS POST multipart/form-data request to the Telegram server */ request(method: string, params: { [s: string]: any; }): Promise<any>; } /** INTERFACES **/