use reply

This commit is contained in:
Flummi 2017-12-05 17:57:25 +01:00
parent 16d07a5088
commit 254ccbf4cd

View File

@ -115,9 +115,9 @@ export class tg extends EventEmitter {
message: tmp.text, message: tmp.text,
time: tmp.date, time: tmp.date,
raw: tmp, raw: tmp,
reply: msg => this.send(tmp.chat.id, this.format(msg)), reply: msg => this.send(tmp.chat.id, this.format(msg), tmp.message_id),
replyAction: msg => this.send(tmp.chat.id, this.format(`Uwe ${msg}`)), replyAction: msg => this.send(tmp.chat.id, this.format(`Uwe ${msg}`), tmp.message_id),
replyNotice: msg => this.send(tmp.chat.id, this.format(msg)), replyNotice: msg => this.send(tmp.chat.id, this.format(msg), tmp.message_id),
_user: this.server.user _user: this.server.user
}; };
} }