From 307c6a057113f2c51978835adb5e4a949db2005e Mon Sep 17 00:00:00 2001 From: Simone Mariotti Date: Sat, 5 Aug 2017 13:20:42 +0200 Subject: [PATCH] Update TeleBot --- types/telebot/index.d.ts | 6 +++--- types/telebot/telebot-tests.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/types/telebot/index.d.ts b/types/telebot/index.d.ts index 11c04317da..4c601ae3af 100644 --- a/types/telebot/index.d.ts +++ b/types/telebot/index.d.ts @@ -119,13 +119,13 @@ declare class telebot { static addMethods(...methods: Array): 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; diff --git a/types/telebot/telebot-tests.ts b/types/telebot/telebot-tests.ts index d2515e3871..91f4f4531f 100644 --- a/types/telebot/telebot-tests.ts +++ b/types/telebot/telebot-tests.ts @@ -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', {});