Module tdlight.api

Class TdApi.GetMessageViewers

Enclosing class:
TdApi

public static final class TdApi.GetMessageViewers extends TdApi.Function<TdApi.MessageViewers>
Returns viewers of a recent outgoing message in a basic group or a supergroup chat. For video notes and voice notes only users, opened content of the message, are returned. The method can be called if message.canGetViewers == true.

Returns MessageViewers

  • Field Details

    • chatId

      public long chatId
      Chat identifier.
    • messageId

      public long messageId
      Identifier of the message.
    • CONSTRUCTOR

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

    • GetMessageViewers

      public GetMessageViewers()
      Returns viewers of a recent outgoing message in a basic group or a supergroup chat. For video notes and voice notes only users, opened content of the message, are returned. The method can be called if message.canGetViewers == true.

      Returns MessageViewers

    • GetMessageViewers

      public GetMessageViewers(long chatId, long messageId)
      Returns viewers of a recent outgoing message in a basic group or a supergroup chat. For video notes and voice notes only users, opened content of the message, are returned. The method can be called if message.canGetViewers == true.

      Returns MessageViewers

      Parameters:
      chatId - Chat identifier.
      messageId - Identifier of the message.

      Returns MessageViewers

    • GetMessageViewers

      public GetMessageViewers(DataInput input) throws IOException
      Returns viewers of a recent outgoing message in a basic group or a supergroup chat. For video notes and voice notes only users, opened content of the message, are returned. The method can be called if message.canGetViewers == true.

      Returns MessageViewers

      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