Restrict Chat Member Request
data class RestrictChatMemberRequest(chat_id: String, user_id: Long, permissions: ChatPermissions, until_date: Long?) : TelegramRequest
Content copied to clipboard
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)
Content copied to clipboard