TelegramBot now properly extends EventEmitter.

This commit is contained in:
Martin Donkersloot
2017-08-15 21:36:07 +02:00
parent 62cadd0386
commit baacececc1

View File

@@ -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>;