diff --git a/StarTransactionsBot/src/main/kotlin/StarTransactionsBot.kt b/StarTransactionsBot/src/main/kotlin/StarTransactionsBot.kt index c7f3a55..6d0de74 100644 --- a/StarTransactionsBot/src/main/kotlin/StarTransactionsBot.kt +++ b/StarTransactionsBot/src/main/kotlin/StarTransactionsBot.kt @@ -174,6 +174,17 @@ suspend fun main(vararg args: String) { ) } + onPaidMediaInfoContent { + println(it) + } + + onRefundedPayment { + reply( + it, + "Received your refund: ${it.chatEvent.payment}" + ) + } + allUpdatesFlow.subscribeSafelyWithoutExceptions(this) { println(it) } }.second.join() }