UnbanChatMemberRequest

data class UnbanChatMemberRequest(chatId: Int, userId: Int, onlyIfBanned: Boolean)

Request body for unbanChatMember

Parameters

chatId

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

userId

Unique identifier of the target user

onlyIfBanned

Do nothing if the user is not banned

Constructors

UnbanChatMemberRequest
Link copied to clipboard
common
fun UnbanChatMemberRequest(chatId: Int, userId: Int, onlyIfBanned: Boolean = false)
Unique identifier for the target group or username of the target supergroup or channel (in the format @username)

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(): Boolean
copy
Link copied to clipboard
common
fun copy(chatId: Int, userId: Int, onlyIfBanned: Boolean = false): UnbanChatMemberRequest
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 @username)
onlyIfBanned
Link copied to clipboard
common
val onlyIfBanned: Boolean = false
Do nothing if the user is not banned
userId
Link copied to clipboard
common
val userId: Int
Unique identifier of the target user