diff --git a/types/node-telegram-bot-api/index.d.ts b/types/node-telegram-bot-api/index.d.ts index de590c4bcf730b..15aee8eaf143b4 100644 --- a/types/node-telegram-bot-api/index.d.ts +++ b/types/node-telegram-bot-api/index.d.ts @@ -882,6 +882,8 @@ declare namespace TelegramBot { interface KeyboardButton { text: string; + style?: "primary" | "danger" | "success" | undefined; + icon_custom_emoji_id?: string | undefined; request_user?: KeyboardButtonRequestUser | undefined; request_chat?: KeyboardButtonRequestChat | undefined; request_contact?: boolean | undefined; @@ -922,6 +924,8 @@ declare namespace TelegramBot { interface InlineKeyboardButton { text: string; + style?: "primary" | "danger" | "success" | undefined; + icon_custom_emoji_id?: string | undefined; url?: string | undefined; callback_data?: string | undefined; web_app?: WebAppInfo; diff --git a/types/node-telegram-bot-api/node-telegram-bot-api-tests.ts b/types/node-telegram-bot-api/node-telegram-bot-api-tests.ts index 8eda3a95076bd7..166416f9640204 100644 --- a/types/node-telegram-bot-api/node-telegram-bot-api-tests.ts +++ b/types/node-telegram-bot-api/node-telegram-bot-api-tests.ts @@ -548,3 +548,31 @@ MyTelegramBot.setStickerSetThumb(1234, "my_set_thumb", "thumb_file"); MyTelegramBot.setMessageReaction(1234, 1234, { reaction: [{ type: "emoji", emoji: "👍" }], }); +MyTelegramBot.sendMessage(1234, "test-InlineKeyboardButton", { + reply_markup: { + inline_keyboard: [ + [ + { + text: "Registration", + callback_data: "reg", + icon_custom_emoji_id: "5179278706941624825", + style: "primary", + }, + ], + ], + }, +}); +MyTelegramBot.sendMessage(1234, "test-KeyboardButton", { + reply_markup: { + keyboard: [ + [ + { + text: "Button", + request_contact: false, + icon_custom_emoji_id: "5179278706941624825", + style: "success", + }, + ], + ], + }, +});