upgrade to support new ktgbotapi

This commit is contained in:
2024-04-18 17:03:53 +06:00
parent 57dd2380cd
commit b660bf5f42
4 changed files with 8 additions and 15 deletions

View File

@@ -56,6 +56,10 @@ suspend fun main(vararg args: String) {
} ?: chat.title
}
}
is PreviewBusinessChat -> {
reply(message, "Hi, " + "${chat.original.firstName} ${chat.original.lastName} (as business chat :) )".textMentionMarkdownV2(chat.original.id), MarkdownV2)
return@onMentionWithAnyContent
}
is UnknownChatType -> "Unknown :(".escapeMarkdownV2Common()
}
reply(