Module tdlight.api

Class TdApi.GetMessageStatistics

Enclosing class:
TdApi

public static final class TdApi.GetMessageStatistics extends TdApi.Function<TdApi.MessageStatistics>
Returns detailed statistics about a message. Can be used only if message.canGetStatistics == true.

Returns MessageStatistics

  • Field Details

    • chatId

      public long chatId
      Chat identifier.
    • messageId

      public long messageId
      Message identifier.
    • isDark

      public boolean isDark
      Pass true if a dark theme is used by the application.
    • CONSTRUCTOR

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

    • GetMessageStatistics

      public GetMessageStatistics()
      Returns detailed statistics about a message. Can be used only if message.canGetStatistics == true.

      Returns MessageStatistics

    • GetMessageStatistics

      public GetMessageStatistics(long chatId, long messageId, boolean isDark)
      Returns detailed statistics about a message. Can be used only if message.canGetStatistics == true.

      Returns MessageStatistics

      Parameters:
      chatId - Chat identifier.
      messageId - Message identifier.
      isDark - Pass true if a dark theme is used by the application.

      Returns MessageStatistics

    • GetMessageStatistics

      public GetMessageStatistics(DataInput input) throws IOException
      Returns detailed statistics about a message. Can be used only if message.canGetStatistics == true.

      Returns MessageStatistics

      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