fix some 400s
This commit is contained in:
parent
1dab59ea67
commit
0cad1160f4
@ -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`,
|
||||
|
Loading…
Reference in New Issue
Block a user