RestrictChatMemberRequest

data class RestrictChatMemberRequest(chatId: Int, userId: Int, permissions: ChatPermissions, untilDate: Int?)

Request body for restrictChatMember

Parameters

chatId

Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)

userId

Unique identifier of the target user

permissions

A JSON-serialized object for new user permissions

untilDate

Date when restrictions will be lifted for the user, unix time. If user is restricted for more than 366 days or less than 30 seconds from the current time, they are considered to be restricted forever

Constructors

RestrictChatMemberRequest
Link copied to clipboard
common
fun RestrictChatMemberRequest(chatId: Int, userId: Int, permissions: ChatPermissions, untilDate: Int? = null)
Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)

Functions

component1
Link copied to clipboard
common
operator fun component1(): Int
component2
Link copied to clipboard
common
operator fun component2(): Int
component3
Link copied to clipboard
common
operator fun component3(): ChatPermissions
component4
Link copied to clipboard
common
operator fun component4(): Int?
copy
Link copied to clipboard
common
fun copy(chatId: Int, userId: Int, permissions: ChatPermissions, untilDate: Int? = null): RestrictChatMemberRequest
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

chatId
Link copied to clipboard
common
val chatId: Int
Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
permissions
Link copied to clipboard
common
val permissions: ChatPermissions
A JSON-serialized object for new user permissions
untilDate
Link copied to clipboard
common
val untilDate: Int? = null
Date when restrictions will be lifted for the user, unix time.
userId
Link copied to clipboard
common
val userId: Int
Unique identifier of the target user