mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-14 12:09:04 +08:00
TelegramBot now properly extends EventEmitter.
This commit is contained in:
5
types/node-telegram-bot-api/index.d.ts
vendored
5
types/node-telegram-bot-api/index.d.ts
vendored
@@ -3,8 +3,11 @@
|
||||
// Definitions by: Alex Muench <https://github.com/ammuench>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.1
|
||||
/// <reference types="node" />
|
||||
|
||||
declare class TelegramBot {
|
||||
import { EventEmitter } from 'events';
|
||||
|
||||
declare class TelegramBot extends EventEmitter {
|
||||
constructor(token: string, opts?: any);
|
||||
|
||||
startPolling(options?: any): Promise<any>;
|
||||
|
||||
Reference in New Issue
Block a user