Merge pull request #18656 from mariotsi/patch-1

Update TeleBot definitions
This commit is contained in:
Andrew Casey
2017-08-08 13:32:17 -07:00
committed by GitHub
2 changed files with 6 additions and 6 deletions

View File

@@ -119,13 +119,13 @@ declare class telebot {
static addMethods(...methods: Array<telebot.genericCb | any>): any;
// methods.js
keyboard(keyboard: string, opt?: any): any;
keyboard(buttons: any[][], opt?: any): any;
button(type: string, text?: string): any;
inlineKeyboard(inlineKeyboard: string): any;
inlineKeyboard(inlineButtons: any[][]): any;
inlineQueryKeyboard(inlineKeyboard: string): any;
inlineQueryKeyboard(config: any[][]): any;
inlineButton(text: string, opt?: any): any;

View File

@@ -70,13 +70,13 @@ bot.plug({
}
});
bot.keyboard('this', {});
bot.keyboard([[]], {});
bot.button('this', 'test');
bot.inlineKeyboard('string');
bot.inlineKeyboard([[]]);
bot.inlineQueryKeyboard('string');
bot.inlineQueryKeyboard([[]]);
bot.inlineButton('string', {});