Don't process messages without a text
This commit is contained in:
@ -146,6 +146,8 @@ export default class Bot extends EventEmitter {
|
||||
|
||||
update.forEach(res => {
|
||||
let text = res.message.text;
|
||||
if (!text) return;
|
||||
|
||||
const selfUsername = `@${this.info.username}`;
|
||||
|
||||
if (text.startsWith('/') && text.indexOf(selfUsername) > -1) {
|
||||
|
Reference in New Issue
Block a user