Skip to content

Commit

Permalink
inlineChoice to chosenInlineResult
Browse files Browse the repository at this point in the history
  • Loading branch information
mullwar committed May 20, 2017
1 parent d9a8ab1 commit 3fd38af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ bot.on(['/start', 'audio', 'sticker'], msg => {
- **tick** – on bot tick
- **error** – an error occurred
- **inlineQuery** - inline query data
- **inlineChoice** - inline query chosen result
- **chosenInlineResult** - inline query chosen result
- **callbackQuery** - button callback data
- **shippingQuery** - incoming shipping query
- **preShippingQuery** - incoming pre-checkout query
Expand Down
4 changes: 2 additions & 2 deletions lib/updates.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ const updateFunctions = {

// Inline choice
chosen_inline_result(update, props) {
props.type = 'inlineChoice';
return this.event('inlineChoice', update, props);
props.type = 'chosenInlineResult';
return this.event([props.type, 'inlineChoice'], update, props);
},

// Callback query
Expand Down

0 comments on commit 3fd38af

Please sign in to comment.