mirror of
https://github.com/InsanusMokrassar/TelegramBotApiLibraries.git
synced 2024-11-26 12:08:47 +00:00
hotfix
This commit is contained in:
parent
3026f8d1f6
commit
8a318d44ea
@ -4,8 +4,6 @@ import dev.inmo.tgbotapi.types.ChatId
|
|||||||
import dev.inmo.tgbotapi.types.UserId
|
import dev.inmo.tgbotapi.types.UserId
|
||||||
import dev.inmo.tgbotapi.types.message.abstracts.*
|
import dev.inmo.tgbotapi.types.message.abstracts.*
|
||||||
|
|
||||||
suspend fun AdminsCacheAPI.userIsAdmin(chatId: ChatId, userId: UserId) = this.isAdmin()
|
|
||||||
|
|
||||||
suspend fun AdminsCacheAPI.verifyMessageFromAdmin(message: ContentMessage<*>) = when (message) {
|
suspend fun AdminsCacheAPI.verifyMessageFromAdmin(message: ContentMessage<*>) = when (message) {
|
||||||
is CommonGroupContentMessage<*> -> isAdmin(message.chat.id, message.user.id)
|
is CommonGroupContentMessage<*> -> isAdmin(message.chat.id, message.user.id)
|
||||||
is AnonymousGroupContentMessage<*> -> true
|
is AnonymousGroupContentMessage<*> -> true
|
||||||
|
Loading…
Reference in New Issue
Block a user