mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
synced 2025-09-01 14:19:40 +00:00
update telegram bot api
This commit is contained in:
@@ -24,7 +24,7 @@ suspend fun main(vararg args: String) {
|
|||||||
|
|
||||||
bot.startGettingFlowsUpdatesByLongPolling(scope = scope) {
|
bot.startGettingFlowsUpdatesByLongPolling(scope = scope) {
|
||||||
messageFlow.asContentMessagesFlow().mapNotNull { it as? PossiblyForwardedMessage }.onEach { message ->
|
messageFlow.asContentMessagesFlow().mapNotNull { it as? PossiblyForwardedMessage }.onEach { message ->
|
||||||
safely {
|
safely({ it.printStackTrace() }) {
|
||||||
val toAnswer = when (val forwardInfo = message.forwardInfo) {
|
val toAnswer = when (val forwardInfo = message.forwardInfo) {
|
||||||
null -> "There is no forward info"
|
null -> "There is no forward info"
|
||||||
is AnonymousForwardInfo -> "Anonymous user which signed as \"${forwardInfo.senderName.codeMarkdownV2()}\""
|
is AnonymousForwardInfo -> "Anonymous user which signed as \"${forwardInfo.senderName.codeMarkdownV2()}\""
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
kotlin.code.style=official
|
kotlin.code.style=official
|
||||||
org.gradle.parallel=true
|
org.gradle.parallel=true
|
||||||
|
|
||||||
kotlin_version=1.4.0
|
kotlin_version=1.4.10
|
||||||
telegram_bot_api_version=0.28.0
|
telegram_bot_api_version=0.28.1
|
||||||
|
Reference in New Issue
Block a user