From f56623e24037e64662095263b62df205649151ba Mon Sep 17 00:00:00 2001 From: Nicolas Le Cam Date: Sun, 26 Oct 2025 16:40:18 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#73879=20[node-tele?= =?UTF-8?q?gram-bot-api]=20Add=20missing=20properties=20to=20createInvoice?= =?UTF-8?q?Link=20options=20by=20@KuSh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/node-telegram-bot-api/index.d.ts | 3 +++ .../node-telegram-bot-api-tests.ts | 10 +++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/types/node-telegram-bot-api/index.d.ts b/types/node-telegram-bot-api/index.d.ts index 938b82cd488230..bf84818ce3e717 100644 --- a/types/node-telegram-bot-api/index.d.ts +++ b/types/node-telegram-bot-api/index.d.ts @@ -416,6 +416,9 @@ declare namespace TelegramBot { } interface CreateInvoiceLinkOptions { + subscription_period?: number | undefined; + max_tip_amount?: number | undefined; + suggested_tip_amounts?: number[] | undefined; provider_data?: string | undefined; photo_url?: string | undefined; photo_size?: number | undefined; 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 9786fe650968ab..7c7dbc1e83bac9 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 @@ -346,7 +346,15 @@ MyTelegramBot.createInvoiceLink( amount: 1200, }, ], - { photo_url: "url", need_email: false, send_phone_number_to_provider: false, is_flexible: true }, + { + photo_url: "url", + need_email: false, + send_phone_number_to_provider: false, + is_flexible: true, + subscription_period: 2592000, + max_tip_amount: 145, + suggested_tip_amounts: [40, 75, 110, 145], + }, ); MyTelegramBot.answerShippingQuery("shippingQueryId", true, { shipping_options: [