From 52bc5a14090bf67c3bff755b546e7d3dc70f5842 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Thu, 18 Feb 2021 00:28:36 +0600 Subject: [PATCH] RestrictionsChatPermissions --- CHANGELOG.md | 2 +- .../dev/inmo/tgbotapi/types/chat/ChatPermissions.kt | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe015b81ff..8c7f009416 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ ## 0.32.7 * `Core`: - * New variable `LeftRestrictionsChatPermissions` + * New variable `LeftRestrictionsChatPermissions` and `RestrictionsChatPermissions` * `Extensions Utils`: * `DiceAnimationType` class casts * `Behaviour Builder`: diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/ChatPermissions.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/ChatPermissions.kt index bb9a9f4e2d..67091d9bd4 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/ChatPermissions.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/ChatPermissions.kt @@ -34,3 +34,14 @@ val LeftRestrictionsChatPermissions = ChatPermissions( canInviteUsers = true, canPinMessages = true, ) + +val RestrictionsChatPermissions = ChatPermissions( + canSendMessages = false, + canSendMediaMessages = false, + canSendPolls = false, + canSendOtherMessages = false, + canAddWebPagePreviews = false, + canChangeInfo = false, + canInviteUsers = false, + canPinMessages = false, +)