Comparing version 0.2.0 to 0.3.0
@@ -427,2 +427,5 @@ var debug = require('debug')('telegraf:core') | ||
var context = Object.assign({}, this.context) | ||
context.__defineGetter__('eventType', function () { | ||
return payloadType | ||
}) | ||
if (payloadType === 'message' || messageSubTypes.indexOf(payloadType) !== -1) { | ||
@@ -429,0 +432,0 @@ shortcuts.forEach(function (shortcut) { |
{ | ||
"name": "telegraf", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "Telegram bot framework", | ||
@@ -5,0 +5,0 @@ "main": "lib/app.js", |
@@ -106,6 +106,7 @@ # Telegraf | ||
app.use(function * (){ | ||
this.message; // Received message | ||
this.inlineQuery; // Received inline query | ||
this.chosenInlineResult; // Received inline query result | ||
this.callbackQuery; // Received callback query | ||
this.eventType // Event type | ||
this.message // Received message | ||
this.inlineQuery // Received inline query | ||
this.chosenInlineResult // Received inline query result | ||
this.callbackQuery // Received callback query | ||
}); | ||
@@ -112,0 +113,0 @@ ``` |
34183
422
696