mirror of
				https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
				synced 2025-11-04 06:00:10 +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) {
 | 
			
		||||
        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()}\""
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,5 @@
 | 
			
		||||
kotlin.code.style=official
 | 
			
		||||
org.gradle.parallel=true
 | 
			
		||||
 | 
			
		||||
kotlin_version=1.4.0
 | 
			
		||||
telegram_bot_api_version=0.28.0
 | 
			
		||||
kotlin_version=1.4.10
 | 
			
		||||
telegram_bot_api_version=0.28.1
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user