fix some 400s

This commit is contained in:
Flummi 2017-12-19 10:46:49 +01:00
parent 1dab59ea67
commit 0cad1160f4

View File

@ -77,6 +77,8 @@ export class tg extends EventEmitter {
});
}
send(chatid, msg, reply = null) {
if(msg.length === 0 || msg.length > 2048)
return false;
const opts = {
method: 'POST',
uri: `${this.api}/sendMessage`,