mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
synced 2024-12-22 08:37:18 +00:00
migration onto 18.0.0
This commit is contained in:
parent
590f9ec6d8
commit
a62a14a599
@ -106,7 +106,7 @@ suspend fun main(args: Array<String>) {
|
|||||||
|
|
||||||
suspend fun BehaviourContext.getUserChatPermissions(chatId: ChatId, userId: UserId): ChatPermissions? {
|
suspend fun BehaviourContext.getUserChatPermissions(chatId: ChatId, userId: UserId): ChatPermissions? {
|
||||||
val chatMember = getChatMember(chatId, userId)
|
val chatMember = getChatMember(chatId, userId)
|
||||||
return chatMember.restrictedChatMemberOrNull() ?: chatMember.whenMemberChatMember {
|
return chatMember.restrictedMemberChatMemberOrNull() ?: chatMember.whenMemberChatMember {
|
||||||
getChat(chatId).extendedGroupChatOrNull() ?.permissions
|
getChat(chatId).extendedGroupChatOrNull() ?.permissions
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,8 +5,8 @@ org.gradle.jvmargs=-Xmx3148m
|
|||||||
kotlin.daemon.jvmargs=-Xmx3g -Xms500m
|
kotlin.daemon.jvmargs=-Xmx3g -Xms500m
|
||||||
|
|
||||||
|
|
||||||
kotlin_version=2.0.10
|
kotlin_version=2.0.20
|
||||||
telegram_bot_api_version=17.0.0
|
telegram_bot_api_version=18.0.0
|
||||||
micro_utils_version=0.22.0
|
micro_utils_version=0.22.1
|
||||||
serialization_version=1.7.1
|
serialization_version=1.7.2
|
||||||
ktor_version=2.3.11
|
ktor_version=2.3.12
|
||||||
|
Loading…
Reference in New Issue
Block a user