SetChatPermissions

@Serializable
data class SetChatPermissions(val chatId: ChatIdentifier, val permissions: ChatPermissions, val useIndependentChatPermissions: Boolean? = permissions.isGranular.takeIf { it }) : ChatRequest, SimpleRequest<Boolean>

Constructors

Link copied to clipboard
constructor(chatId: ChatIdentifier, permissions: ChatPermissions, useIndependentChatPermissions: Boolean? = permissions.isGranular.takeIf { it })

Properties

Link copied to clipboard
@SerialName(value = "chat_id")
open override val chatId: ChatIdentifier
Link copied to clipboard
@SerialName(value = "permissions")
val permissions: ChatPermissions
Link copied to clipboard
open override val requestSerializer: SerializationStrategy<*>
Link copied to clipboard
open override val resultDeserializer: DeserializationStrategy<Boolean>
Link copied to clipboard
@SerialName(value = "use_independent_chat_permissions")
val useIndependentChatPermissions: Boolean?

Functions

Link copied to clipboard
open override fun method(): String