1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2025-09-03 23:29:33 +00:00

update invoices API

This commit is contained in:
2024-06-07 01:18:55 +06:00
parent 7118631213
commit 663d63b009
3 changed files with 8 additions and 10 deletions

View File

@@ -82,7 +82,7 @@ suspend fun TelegramBot.sendInvoice(
title: String,
description: String,
payload: String,
prices: List<LabeledPrice>,
price: LabeledPrice,
maxTipAmount: Int? = null,
suggestedTipAmounts: List<Int>? = null,
startParameter: StartParameter? = null,
@@ -101,7 +101,7 @@ suspend fun TelegramBot.sendInvoice(
replyParameters: ReplyParameters? = null,
replyMarkup: InlineKeyboardMarkup? = null
) = execute(
SendInvoice(chatId, title, description, payload, null, Currency.XTR, prices, maxTipAmount, suggestedTipAmounts ?.sorted(), startParameter, providerData, requireName, requirePhoneNumber, requireEmail, requireShippingAddress, shouldSendPhoneNumberToProvider, shouldSendEmailToProvider, priceDependOnShipAddress, threadId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
SendInvoice(chatId, title, description, payload, price, maxTipAmount, suggestedTipAmounts ?.sorted(), startParameter, providerData, requireName, requirePhoneNumber, requireEmail, requireShippingAddress, shouldSendPhoneNumberToProvider, shouldSendEmailToProvider, priceDependOnShipAddress, threadId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
)
/**
@@ -113,7 +113,7 @@ suspend fun TelegramBot.sendInvoice(
title: String,
description: String,
payload: String,
prices: List<LabeledPrice>,
price: LabeledPrice,
maxTipAmount: Int? = null,
suggestedTipAmounts: List<Int>? = null,
startParameter: StartParameter? = null,
@@ -135,7 +135,7 @@ suspend fun TelegramBot.sendInvoice(
title = title,
description = description,
payload = payload,
prices = prices,
price = price,
maxTipAmount = maxTipAmount,
suggestedTipAmounts = suggestedTipAmounts,
startParameter = startParameter,