mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
synced 2025-09-01 06:09:34 +00:00
start migration onto 9.0.0
This commit is contained in:
@@ -28,7 +28,7 @@ suspend fun main(vararg args: String) {
|
||||
|
||||
telegramBotWithBehaviourAndLongPolling(botToken, CoroutineScope(Dispatchers.IO)) {
|
||||
val me = getMe()
|
||||
onMentionWithAnyContent(me.username) { message ->
|
||||
onMentionWithAnyContent(me) { message ->
|
||||
val chat = message.chat
|
||||
|
||||
val answerText = when (val chat = message.chat) {
|
||||
|
Reference in New Issue
Block a user