This commit is contained in:
Flummi
2018-02-28 04:34:52 +01:00
parent 2940b05518
commit 59be967f29
23 changed files with 96 additions and 26 deletions

View File

@@ -11,11 +11,13 @@ export class tg extends EventEmitter {
this.options = options || {};
this.token = options.token || null;
this.options.pollrate = options.pollrate || 1000;
this.set = this.options.set || "all";
this.network = "Telegram";
this.api = `https://api.telegram.org/bot${this.token}`;
this.lastUpdate = 0;
this.lastMessage = 0;
this.server = {
set: this.set,
channel: new Map(),
user: new Map(),
me: {},