mirror of
				https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
				synced 2025-10-30 19:50:06 +00:00 
			
		
		
		
	checked 2.1.0 and Bot API 6.1 + update several examples
This commit is contained in:
		| @@ -26,7 +26,13 @@ suspend fun main(vararg args: String) { | ||||
|                     is UserForwardInfo -> { | ||||
|                         val user = forwardInfo.from | ||||
|                         when (user) { | ||||
|                             is CommonUser -> regular("User ") | ||||
|                             is CommonUser -> { | ||||
|                                 if (user.isPremium) { | ||||
|                                     regular("Premium user ") | ||||
|                                 } else { | ||||
|                                     regular("User ") | ||||
|                                 } | ||||
|                             } | ||||
|                             is CommonBot, | ||||
|                             is ExtendedBot -> regular("Bot ") | ||||
|                         } + code(user.id.chatId.toString()) + " (${user.firstName} ${user.lastName}: ${user.username ?.username ?: "Without username"})" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user