mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-14 12:09:04 +08:00
Merge pull request #18656 from mariotsi/patch-1
Update TeleBot definitions
This commit is contained in:
6
types/telebot/index.d.ts
vendored
6
types/telebot/index.d.ts
vendored
@@ -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;
|
||||
|
||||
|
||||
@@ -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', {});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user