mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
synced 2024-11-14 04:13:53 +00:00
Merge branch '18.0.0' into chatmemberupdated
This commit is contained in:
commit
ca0427bfdd
@ -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=18.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