update ktgbotapi version 9.2.2

This commit is contained in:
InsanusMokrassar 2023-10-11 15:21:44 +06:00
parent a81cfaaba9
commit 9773a74890
3 changed files with 6 additions and 8 deletions

View File

@ -32,16 +32,16 @@ suspend fun main(vararg args: String) {
val chat = message.chat
val answerText = when (val chat = message.chat) {
is ChannelChat -> {
is PreviewChannelChat -> {
val answer = "Hi everybody in this channel \"${chat.title}\""
reply(message, answer, MarkdownV2)
return@onMentionWithAnyContent
}
is PrivateChat -> {
is PreviewPrivateChat -> {
reply(message, "Hi, " + "${chat.firstName} ${chat.lastName}".textMentionMarkdownV2(chat.id), MarkdownV2)
return@onMentionWithAnyContent
}
is GroupChat -> {
is PreviewGroupChat -> {
message.ifFromChannelGroupContentMessage {
val answer = "Hi, ${it.senderChat.title}"
reply(message, answer, MarkdownV2)
@ -56,9 +56,7 @@ suspend fun main(vararg args: String) {
} ?: chat.title
}
}
is UnknownExtendedChat,
is UnknownChatType -> "Unknown :(".escapeMarkdownV2Common()
else -> error("Something went wrong: unknown type of chat $chat")
}
reply(
message,

View File

@ -23,6 +23,6 @@ allprojects {
}
}
maven { url "https://git.inmo.dev/api/packages/InsanusMokrassar/maven" }
// maven { url "https://git.inmo.dev/api/packages/InsanusMokrassar/maven" }
}
}

View File

@ -5,7 +5,7 @@ org.gradle.jvmargs=-Xmx2g
kotlin_version=1.8.22
telegram_bot_api_version=9.2.1
telegram_bot_api_version=9.2.2
micro_utils_version=0.19.9
serialization_version=1.5.1
ktor_version=2.3.3
ktor_version=2.3.4