Forgot to build - 0.4.6
This commit is contained in:
parent
06bcc25801
commit
bfa2313f3a
@ -192,6 +192,7 @@ var Bot = (function (_EventEmitter) {
|
|||||||
// Commands are sent in /command@thisusername format in groups
|
// Commands are sent in /command@thisusername format in groups
|
||||||
var regex = new RegExp('@' + _this2.info.username + '$');
|
var regex = new RegExp('@' + _this2.info.username + '$');
|
||||||
text = text.replace(regex, '');
|
text = text.replace(regex, '');
|
||||||
|
res.message.text = text;
|
||||||
}
|
}
|
||||||
|
|
||||||
var ev = _this2._userEvents.find(function (_ref) {
|
var ev = _this2._userEvents.find(function (_ref) {
|
||||||
|
2
demo.js
2
demo.js
@ -5,7 +5,7 @@ var Message = require('telegram-api/types/Message');
|
|||||||
var Question = require('telegram-api/types/Question');
|
var Question = require('telegram-api/types/Question');
|
||||||
|
|
||||||
var bot = new Bot({
|
var bot = new Bot({
|
||||||
token: 'YOUR_KEY'
|
token: '114687409:AAEVpfOmGI7xNKiKzVA9LBcOO9INpIwnvDI'
|
||||||
});
|
});
|
||||||
|
|
||||||
bot.start().catch(err => {
|
bot.start().catch(err => {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "telegram-api",
|
"name": "telegram-api",
|
||||||
"version": "0.4.5",
|
"version": "0.4.6",
|
||||||
"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