diff --git a/lib/index.js b/lib/index.js index 7803e4b..dcb75ae 100644 --- a/lib/index.js +++ b/lib/index.js @@ -144,6 +144,7 @@ export default class Bot extends EventEmitter { // Commands are sent in /command@thisusername format in groups const regex = new RegExp(`@${this.info.username}$`); text = text.replace(regex, ''); + res.message.text = text; } let ev = this._userEvents.find(({pattern}) => pattern.test(text)); diff --git a/package.json b/package.json index 084bf20..1c27c62 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "telegram-api", - "version": "0.4.4", + "version": "0.4.5", "description": "Control Telegram bots easily using the new Telegram API", "main": "index.js", "scripts": {