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)

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PromoteChatMember
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. 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

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val canChangeInfo: Option[Boolean]
  6. val canDeleteMessages: Option[Boolean]
  7. val canEditMessages: Option[Boolean]
  8. val canInviteUsers: Option[Boolean]
  9. val canPinMessages: Option[Boolean]
  10. val canPostMessages: Option[Boolean]
  11. val canPromoteMembers: Option[Boolean]
  12. val canRestrictMembers: Option[Boolean]
  13. val chatId: ChatId
  14. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. def productElementNames: Iterator[String]
    Definition Classes
    Product
  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. val userId: Int
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped