Package org.drinkless.tdlib

# Class TdApi.ChatEventMemberPromoted

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.ChatEventAction
org.drinkless.tdlib.TdApi.ChatEventMemberPromoted

Enclosing class:
  `TdApi`

public static class TdApi.ChatEventMemberPromoted extends TdApi.ChatEventAction
A chat member has gained/lost administrator status, or the list of their administrator privileges has changed.

- ## Nested Class Summary

  ## Nested classes/interfaces inherited from class org.drinkless.tdlib.TdApi.ChatEventAction

  `TdApi.ChatEventAction.Constructors`

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final int`
  `CONSTRUCTOR`
  Identifier uniquely determining type of the object.
  `TdApi.ChatMemberStatus`
  `newStatus`
  New status of the chat member.
  `TdApi.ChatMemberStatus`
  `oldStatus`
  Previous status of the chat member.
  `long`
  `userId`
  Affected chat member user identifier.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ChatEventMemberPromoted()`
  A chat member has gained/lost administrator status, or the list of their administrator privileges has changed.
  `ChatEventMemberPromoted(long userId, TdApi.ChatMemberStatus oldStatus, TdApi.ChatMemberStatus newStatus)`
  A chat member has gained/lost administrator status, or the list of their administrator privileges has changed.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `getConstructor()`
  Returns an identifier uniquely determining type of the object.

  ### Methods inherited from class org.drinkless.tdlib.TdApi.Object

  `toString`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Field Details

  - ### userId

    public long userId
    Affected chat member user identifier.

  - ### oldStatus

    public TdApi.ChatMemberStatus oldStatus
    Previous status of the chat member.

  - ### newStatus

    public TdApi.ChatMemberStatus newStatus
    New status of the chat member.

  - ### CONSTRUCTOR

    public static final int CONSTRUCTOR
    Identifier uniquely determining type of the object.
    See Also:
      - Constant Field Values

- ## Constructor Details

  - ### ChatEventMemberPromoted

    public ChatEventMemberPromoted()
    A chat member has gained/lost administrator status, or the list of their administrator privileges has changed.

  - ### ChatEventMemberPromoted

    public ChatEventMemberPromoted(long userId, TdApi.ChatMemberStatus oldStatus, TdApi.ChatMemberStatus newStatus)
    A chat member has gained/lost administrator status, or the list of their administrator privileges has changed.
    Parameters:
      `userId` - Affected chat member user identifier.
      `oldStatus` - Previous status of the chat member.
      `newStatus` - New status of the chat member.

- ## Method Details

  - ### getConstructor

    public int getConstructor()
    Description copied from class: `TdApi.Object`
    Returns an identifier uniquely determining type of the object.
    Specified by:
      `getConstructor` in class `TdApi.ChatEventAction`
    Returns:
      this.CONSTRUCTOR