Restrict Chat Member Request
data class RestrictChatMemberRequest(chatId: Int, userId: Int, permissions: ChatPermissions, untilDate: Int?)
Content copied to clipboard
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
fun RestrictChatMemberRequest(chatId: Int, userId: Int, permissions: ChatPermissions, untilDate: Int? = null)
Content copied to clipboard
Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
Functions
component1
Link copied to clipboard
component2
Link copied to clipboard
component3
Link copied to clipboard
component4
Link copied to clipboard
copy
Link copied to clipboard
fun copy(chatId: Int, userId: Int, permissions: ChatPermissions, untilDate: Int? = null): RestrictChatMemberRequest
Content copied to clipboard