tgapi-router
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -66,5 +66,9 @@ "use strict"; | ||
} | ||
return this.tgapi.request('answerCallbackQuery', Object.assign(Object.assign({}, options), { text, callback_query_id: this.callback_query.id })); | ||
let data = Object.assign(Object.assign({}, options), { callback_query_id: this.callback_query.id }); | ||
if (text) { | ||
data.text = text; | ||
} | ||
return this.tgapi.request('answerCallbackQuery', data); | ||
} | ||
} | ||
exports.Context = Context; |
{ | ||
"name": "tgapi-router", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
16139
420