final case class PromoteChatMember(chatId: ChatId, userId: Int, canChangeInfo: Option[Boolean] = None, canPostMessages: Option[Boolean] = None, canEditMessages: Option[Boolean] = None, canDeleteMessages: Option[Boolean] = None, canInviteUsers: Option[Boolean] = None, canRestrictMembers: Option[Boolean] = None, canPinMessages: Option[Boolean] = None, canPromoteMembers: Option[Boolean] = None) extends Product with Serializable
Use this method to promote or demote a user in a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights.
Pass False for all boolean parameters to demote a user. Returns True on success.
- chatId
Integer or String Unique identifier for the target chat or username of the target channel (in the format @channelusername)
- userId
Unique identifier of the target user
- 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, 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 his own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by him)
- Alphabetic
- By Inheritance
- PromoteChatMember
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new PromoteChatMember(chatId: ChatId, userId: Int, canChangeInfo: Option[Boolean] = None, canPostMessages: Option[Boolean] = None, canEditMessages: Option[Boolean] = None, canDeleteMessages: Option[Boolean] = None, canInviteUsers: Option[Boolean] = None, canRestrictMembers: Option[Boolean] = None, canPinMessages: Option[Boolean] = None, canPromoteMembers: Option[Boolean] = None)
- chatId
Integer or String Unique identifier for the target chat or username of the target channel (in the format @channelusername)
- userId
Unique identifier of the target user
- 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, 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 his own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by him)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val canChangeInfo: Option[Boolean]
- val canDeleteMessages: Option[Boolean]
- val canEditMessages: Option[Boolean]
- val canInviteUsers: Option[Boolean]
- val canPinMessages: Option[Boolean]
- val canPostMessages: Option[Boolean]
- val canPromoteMembers: Option[Boolean]
- val canRestrictMembers: Option[Boolean]
- val chatId: ChatId
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val userId: Int
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()