1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2025-12-07 06:45:57 +00:00

more jvmApiDump to god of jvmApiDump

This commit is contained in:
2024-11-01 14:50:38 +06:00
parent ccfa6e7b6d
commit 479923a04a
2 changed files with 13 additions and 0 deletions

View File

@@ -5348,6 +5348,16 @@ public inline fun TransactionPartner.otherOrThrow(): TransactionPartner.Other =
public inline fun <T> TransactionPartner.ifOther(block: (TransactionPartner.Other) -> T): T? =
otherOrNull() ?.let(block)
public inline fun TransactionPartner.telegramAPIOrNull(): TransactionPartner.TelegramAPI? = this as?
dev.inmo.tgbotapi.types.payments.stars.TransactionPartner.TelegramAPI
public inline fun TransactionPartner.telegramAPIOrThrow(): TransactionPartner.TelegramAPI = this as
dev.inmo.tgbotapi.types.payments.stars.TransactionPartner.TelegramAPI
public inline fun <T>
TransactionPartner.ifTelegramAPI(block: (TransactionPartner.TelegramAPI) -> T): T? =
telegramAPIOrNull() ?.let(block)
public inline fun TransactionPartner.unknownOrNull(): TransactionPartner.Unknown? = this as?
dev.inmo.tgbotapi.types.payments.stars.TransactionPartner.Unknown