PromoteChatMemberRequest

data class PromoteChatMemberRequest(chatId: Int, userId: Int, isAnonymous: Boolean, canChangeInfo: Boolean, canPostMessages: Boolean, canEditMessages: Boolean, canDeleteMessages: Boolean, canInviteUsers: Boolean, canRestrictMembers: Boolean, canPinMessages: Boolean, canPromoteMembers: Boolean)

Request body for promoteChatMember

Parameters

chatId

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

userId

Unique identifier of the target user

isAnonymous

Pass True, if the administrator's presence in the chat is hidden

canChangeInfo

Pass True, if the administrator can change chat title, photo and other settings

canPostMessages

Pass True, if the administrator can create channel posts, channels only

canEditMessages

Pass True, if the administrator can edit messages of other users and can pin messages, channels only

canDeleteMessages

Pass True, if the administrator can delete messages of other users

canInviteUsers

Pass True, if the administrator can invite new users to the chat

canRestrictMembers

Pass True, if the administrator can restrict, ban or unban chat members

canPinMessages

Pass True, if the administrator can pin messages, supergroups only

canPromoteMembers

Pass True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by him)

Constructors

PromoteChatMemberRequest
Link copied to clipboard
common
fun PromoteChatMemberRequest(chatId: Int, userId: Int, isAnonymous: Boolean = false, canChangeInfo: Boolean = false, canPostMessages: Boolean = false, canEditMessages: Boolean = false, canDeleteMessages: Boolean = false, canInviteUsers: Boolean = false, canRestrictMembers: Boolean = false, canPinMessages: Boolean = false, canPromoteMembers: Boolean = false)
Unique identifier for the target chat or username of the target channel (in the format @channelusername)

Functions

component1
Link copied to clipboard
common
operator fun component1(): Int
component10
Link copied to clipboard
common
operator fun component10(): Boolean
component11
Link copied to clipboard
common
operator fun component11(): Boolean
component2
Link copied to clipboard
common
operator fun component2(): Int
component3
Link copied to clipboard
common
operator fun component3(): Boolean
component4
Link copied to clipboard
common
operator fun component4(): Boolean
component5
Link copied to clipboard
common
operator fun component5(): Boolean
component6
Link copied to clipboard
common
operator fun component6(): Boolean
component7
Link copied to clipboard
common
operator fun component7(): Boolean
component8
Link copied to clipboard
common
operator fun component8(): Boolean
component9
Link copied to clipboard
common
operator fun component9(): Boolean
copy
Link copied to clipboard
common
fun copy(chatId: Int, userId: Int, isAnonymous: Boolean = false, canChangeInfo: Boolean = false, canPostMessages: Boolean = false, canEditMessages: Boolean = false, canDeleteMessages: Boolean = false, canInviteUsers: Boolean = false, canRestrictMembers: Boolean = false, canPinMessages: Boolean = false, canPromoteMembers: Boolean = false): PromoteChatMemberRequest
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

canChangeInfo
Link copied to clipboard
common
val canChangeInfo: Boolean = false
Pass True, if the administrator can change chat title, photo and other settings
canDeleteMessages
Link copied to clipboard
common
val canDeleteMessages: Boolean = false
Pass True, if the administrator can delete messages of other users
canEditMessages
Link copied to clipboard
common
val canEditMessages: Boolean = false
Pass True, if the administrator can edit messages of other users and can pin messages, channels only
canInviteUsers
Link copied to clipboard
common
val canInviteUsers: Boolean = false
Pass True, if the administrator can invite new users to the chat
canPinMessages
Link copied to clipboard
common
val canPinMessages: Boolean = false
Pass True, if the administrator can pin messages, supergroups only
canPostMessages
Link copied to clipboard
common
val canPostMessages: Boolean = false
Pass True, if the administrator can create channel posts, channels only
canPromoteMembers
Link copied to clipboard
common
val canPromoteMembers: Boolean = false
Pass True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by him)
canRestrictMembers
Link copied to clipboard
common
val canRestrictMembers: Boolean = false
Pass True, if the administrator can restrict, ban or unban chat members
chatId
Link copied to clipboard
common
val chatId: Int
Unique identifier for the target chat or username of the target channel (in the format @channelusername)
isAnonymous
Link copied to clipboard
common
val isAnonymous: Boolean = false
Pass True, if the administrator's presence in the chat is hidden
userId
Link copied to clipboard
common
val userId: Int
Unique identifier of the target user