RestrictChatMemberRequest

data class RestrictChatMemberRequest(chat_id: String, user_id: Long, permissions: ChatPermissions, until_date: Long?) : TelegramRequest

Use this method to restrict a user in a supergroup. The bot must be an administrator in the supergroup for this to work and must have the appropriate admin rights. Pass True for all permissions to lift restrictions from a user. Returns True on success.

Constructors

RestrictChatMemberRequest
Link copied to clipboard
fun RestrictChatMemberRequest(chat_id: String, user_id: Long, permissions: ChatPermissions, until_date: Long? = null)

Properties

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