KickChatMemberRequest

data class KickChatMemberRequest(chatId: Int, userId: Int, untilDate: Int?)

Request body for kickChatMember

Parameters

chatId

Unique identifier for the target group or username of the target supergroup or channel (in the format @channelusername)

userId

Unique identifier of the target user

untilDate

Date when the user will be unbanned, unix time. If user is banned for more than 366 days or less than 30 seconds from the current time they are considered to be banned forever. Applied for supergroups and channels only.

Constructors

KickChatMemberRequest
Link copied to clipboard
common
fun KickChatMemberRequest(chatId: Int, userId: Int, untilDate: Int? = null)
Unique identifier for the target group or username of the target supergroup or channel (in the format @channelusername)

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(): Int?
copy
Link copied to clipboard
common
fun copy(chatId: Int, userId: Int, untilDate: Int? = null): KickChatMemberRequest
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 group or username of the target supergroup or channel (in the format @channelusername)
untilDate
Link copied to clipboard
common
val untilDate: Int? = null
Date when the user will be unbanned, unix time.
userId
Link copied to clipboard
common
val userId: Int
Unique identifier of the target user