Skip to content

Commit

Permalink
Adds Pay inline button
Browse files Browse the repository at this point in the history
  • Loading branch information
mullwar committed May 19, 2017
1 parent ca14ea4 commit 5adfdd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -289,7 +289,7 @@ Creates `ReplyKeyboardMarkup` keyboard `markup` object.

Creates `KeyboardButton` button.

##### `inlineButton(<text>, {url | callback | game | inline | inlineCurrent})`
##### `inlineButton(<text>, {url | callback | game | inline | inlineCurrent | pay})`

Creates `InlineKeyboardButton` button object.

Expand Down
1 change: 1 addition & 0 deletions lib/methods.js
Expand Up @@ -54,6 +54,7 @@ const methods = {
if (opt.inlineCurrent !== undefined) markup.switch_inline_query_current_chat = opt.inlineCurrent;
if (opt.callback) markup.callback_data = String(opt.callback);
if (opt.game) markup.callback_game = String(opt.game);
if (opt.pay === true) markup.pay = opt.pay;
return markup;
},

Expand Down

0 comments on commit 5adfdd3

Please sign in to comment.