From 8a318d44eaa7adad5da628280814f2199e3449f8 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Tue, 23 Feb 2021 13:22:34 +0600 Subject: [PATCH] hotfix --- .../libraries/cache/admins/MessageSenderVerification.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/cache/admins/common/src/commonMain/kotlin/dev/inmo/tgbotapi/libraries/cache/admins/MessageSenderVerification.kt b/cache/admins/common/src/commonMain/kotlin/dev/inmo/tgbotapi/libraries/cache/admins/MessageSenderVerification.kt index e31a29a..e784cdf 100644 --- a/cache/admins/common/src/commonMain/kotlin/dev/inmo/tgbotapi/libraries/cache/admins/MessageSenderVerification.kt +++ b/cache/admins/common/src/commonMain/kotlin/dev/inmo/tgbotapi/libraries/cache/admins/MessageSenderVerification.kt @@ -4,8 +4,6 @@ import dev.inmo.tgbotapi.types.ChatId import dev.inmo.tgbotapi.types.UserId 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) { is CommonGroupContentMessage<*> -> isAdmin(message.chat.id, message.user.id) is AnonymousGroupContentMessage<*> -> true