mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
synced 2026-12-04 09:13:12 +00:00
update telegram bot api
This commit is contained in:
1 parent
1c509ed8cd
commit
293173a7a8
2 files changed
+3
-3
No files matched your search
@@ -24,7 +24,7 @@ suspend fun main(vararg args: String) {
|
||||
|
||||
bot.startGettingFlowsUpdatesByLongPolling(scope = scope) {
|
||||
messageFlow.asContentMessagesFlow().mapNotNull { it as? PossiblyForwardedMessage }.onEach { message ->
|
||||
safely {
|
||||
safely({ it.printStackTrace() }) {
|
||||
val toAnswer = when (val forwardInfo = message.forwardInfo) {
|
||||
null -> "There is no forward info"
|
||||
is AnonymousForwardInfo -> "Anonymous user which signed as \"${forwardInfo.senderName.codeMarkdownV2()}\""
|
||||
|
||||
Reference in new issue
Block a user