Merge branch '18.0.0' into chatmemberupdated

This commit is contained in:
InsanusMokrassar 2024-08-30 18:41:59 +06:00 committed by GitHub
commit ca0427bfdd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View File

@ -106,7 +106,7 @@ suspend fun main(args: Array<String>) {
suspend fun BehaviourContext.getUserChatPermissions(chatId: ChatId, userId: UserId): ChatPermissions? {
val chatMember = getChatMember(chatId, userId)
return chatMember.restrictedChatMemberOrNull() ?: chatMember.whenMemberChatMember {
return chatMember.restrictedMemberChatMemberOrNull() ?: chatMember.whenMemberChatMember {
getChat(chatId).extendedGroupChatOrNull() ?.permissions
}
}

View File

@ -5,8 +5,8 @@ org.gradle.jvmargs=-Xmx3148m
kotlin.daemon.jvmargs=-Xmx3g -Xms500m
kotlin_version=2.0.10
kotlin_version=2.0.20
telegram_bot_api_version=18.0.0
micro_utils_version=0.22.0
serialization_version=1.7.1
ktor_version=2.3.11
micro_utils_version=0.22.1
serialization_version=1.7.2
ktor_version=2.3.12