Remove @JavaScriptBot from commands' responses
This commit is contained in:
parent
4223613c16
commit
06bcc25801
@ -144,6 +144,7 @@ export default class Bot extends EventEmitter {
|
|||||||
// Commands are sent in /command@thisusername format in groups
|
// Commands are sent in /command@thisusername format in groups
|
||||||
const regex = new RegExp(`@${this.info.username}$`);
|
const regex = new RegExp(`@${this.info.username}$`);
|
||||||
text = text.replace(regex, '');
|
text = text.replace(regex, '');
|
||||||
|
res.message.text = text;
|
||||||
}
|
}
|
||||||
|
|
||||||
let ev = this._userEvents.find(({pattern}) => pattern.test(text));
|
let ev = this._userEvents.find(({pattern}) => pattern.test(text));
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "telegram-api",
|
"name": "telegram-api",
|
||||||
"version": "0.4.4",
|
"version": "0.4.5",
|
||||||
"description": "Control Telegram bots easily using the new Telegram API",
|
"description": "Control Telegram bots easily using the new Telegram API",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
Loading…
Reference in New Issue
Block a user