Module tdlight.api

Class TdApi.UpdateChatMember

Enclosing class:
TdApi

public static final class TdApi.UpdateChatMember extends TdApi.Update
User rights changed in a chat; for bots only.
  • Field Details

    • chatId

      public long chatId
      Chat identifier.
    • actorUserId

      public long actorUserId
      Identifier of the user, changing the rights.
    • date

      public int date
      Point in time (Unix timestamp) when the user rights were changed.
    • oldChatMember

      public TdApi.ChatMember oldChatMember
      Previous chat member.
    • newChatMember

      public TdApi.ChatMember newChatMember
      New chat member.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • UpdateChatMember

      public UpdateChatMember()
      User rights changed in a chat; for bots only.
    • UpdateChatMember

      public UpdateChatMember(long chatId, long actorUserId, int date, TdApi.ChatInviteLink inviteLink, boolean viaChatFolderInviteLink, TdApi.ChatMember oldChatMember, TdApi.ChatMember newChatMember)
      User rights changed in a chat; for bots only.
      Parameters:
      chatId - Chat identifier.
      actorUserId - Identifier of the user, changing the rights.
      date - Point in time (Unix timestamp) when the user rights were changed.
      inviteLink - If user has joined the chat using an invite link, the invite link; may be null.
      viaChatFolderInviteLink - True, if the user has joined the chat using an invite link for a chat folder.
      oldChatMember - Previous chat member.
      newChatMember - New chat member.
    • UpdateChatMember

      public UpdateChatMember(DataInput input) throws IOException
      User rights changed in a chat; for bots only.
      Parameters:
      input - Serialized input
      Throws:
      IOException - the deserialization failed
  • 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.Object
      Returns:
      this.CONSTRUCTOR
    • serialize

      public void serialize(DataOutput output) throws IOException
      Serialize the TDLib class
      Specified by:
      serialize in class TdApi.Object
      Parameters:
      output - output data stream
      Throws:
      IOException - the serialization failed
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object