update invoices API

This commit is contained in:
InsanusMokrassar committed 2024-06-07 01:18:55 +06:00
1 parent 7118631213
commit 663d63b009
3 files changed
+8 -10

No files matched your search

@@ -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,