Comparing version 1.1.1 to 1.1.2
@@ -50,4 +50,2 @@ 'use strict'; | ||
} | ||
config._putUpdate(_this); | ||
}); | ||
@@ -68,2 +66,3 @@ }; | ||
this.userData[property] = data; | ||
this._putUpdate(this); | ||
return this.userData[property]; | ||
@@ -86,2 +85,3 @@ } else { | ||
delete this.userData[property]; | ||
this._putUpdate(this); | ||
} | ||
@@ -92,2 +92,3 @@ }; | ||
this.userData = {}; | ||
this._putUpdate(this); | ||
}; | ||
@@ -98,2 +99,3 @@ | ||
this.tempData[property] = data; | ||
this._putUpdate(this); | ||
return this.tempData[property]; | ||
@@ -116,2 +118,3 @@ } else { | ||
delete this.tempData[property]; | ||
this._putUpdate(this); | ||
} | ||
@@ -122,2 +125,3 @@ }; | ||
this.tempData = {}; | ||
this._putUpdate(this); | ||
}; | ||
@@ -154,2 +158,3 @@ | ||
this._putUpdate(this); | ||
return this; | ||
@@ -164,2 +169,3 @@ }; | ||
this.action = false; | ||
this._putUpdate(this); | ||
return this; | ||
@@ -166,0 +172,0 @@ }; |
@@ -164,2 +164,3 @@ 'use strict'; | ||
Chat.prototype._putUpdate || (Chat.prototype._putUpdate = this._putUpdate.bind(this)); | ||
this.dialogs[chatId] || (this.dialogs[chatId] = {}); | ||
@@ -166,0 +167,0 @@ this.dialogs[chatId][userId] || (this.dialogs[chatId][userId] = new Chat(chatId, userId)); |
{ | ||
"name": "teabot", | ||
"author": "Alexey Bystrov <strikeentco@gmail.com>", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "TeaBot - a way to build interactive Telegram bots.", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
@@ -654,2 +654,5 @@ teabot | ||
# Examples | ||
* [@WezaBot](https://telegram.me/WezaBot) - [strikeentco/WezaBot](https://github.com/strikeentco/WezaBot) | ||
* Webhook - [ex1.webhook.js](https://github.com/strikeentco/teabot/tree/master/examples/ex1.webhook.js) | ||
@@ -656,0 +659,0 @@ * Long pooling - [ex2.pooling.js](https://github.com/strikeentco/teabot/tree/master/examples/ex2.pooling.js) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
53634
922
672