RestrictChatMember

@Serializable
data class RestrictChatMember(val chatId: ChatIdentifier, val userId: UserId, val untilDate: TelegramDate? = null, val permissions: ChatPermissions = ChatPermissions(), val useIndependentChatPermissions: Boolean? = permissions.isGranular.takeIf { it }) : ChatMemberRequest<Boolean> , UntilDate

Constructors

Link copied to clipboard
constructor(chatId: ChatIdentifier, userId: UserId, untilDate: TelegramDate? = null, permissions: ChatPermissions = 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 = "until_date")
open override val untilDate: TelegramDate? = null
Link copied to clipboard
@SerialName(value = "use_independent_chat_permissions")
val useIndependentChatPermissions: Boolean?
Link copied to clipboard
@SerialName(value = "user_id")
open override val userId: UserId

Functions

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