mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
synced 2025-09-03 23:29:50 +00:00
check and a little update
This commit is contained in:
@@ -109,7 +109,11 @@ suspend fun main(args: Array<String>) {
|
||||
}
|
||||
}
|
||||
|
||||
bot.buildBehaviourWithLongPolling {
|
||||
bot.buildBehaviourWithLongPolling(
|
||||
defaultExceptionsHandler = {
|
||||
println(it)
|
||||
}
|
||||
) {
|
||||
onCommand("simple", initialFilter = { it.chat is PublicChat && it.fromUserMessageOrNull() ?.user ?.id == allowedAdmin }) {
|
||||
val replyMessage = it.replyTo
|
||||
val userInReply = replyMessage ?.fromUserMessageOrNull() ?.user ?.id ?: return@onCommand
|
||||
|
Reference in New Issue
Block a user