Module tdlight.api

Class TdApi.GetStoryViewers

Enclosing class:
TdApi

public static final class TdApi.GetStoryViewers extends TdApi.Function<TdApi.MessageViewers>
Returns viewers of a recent outgoing story. The method can be called if story.canGetViewers == true. The views are returned in a reverse chronological order (i.e., in order of decreasing viewDate) For optimal performance, the number of returned stories is chosen by TDLib.

Returns MessageViewers

  • Field Details

    • storyId

      public int storyId
      Story identifier.
    • offsetViewer

      public TdApi.MessageViewer offsetViewer
      A viewer from which to return next viewers; pass null to get results from the beginning.
    • limit

      public int limit
      The maximum number of story viewers to return For optimal performance, the number of returned stories is chosen by TDLib and can be smaller than the specified limit.
    • CONSTRUCTOR

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

    • GetStoryViewers

      public GetStoryViewers()
      Returns viewers of a recent outgoing story. The method can be called if story.canGetViewers == true. The views are returned in a reverse chronological order (i.e., in order of decreasing viewDate) For optimal performance, the number of returned stories is chosen by TDLib.

      Returns MessageViewers

    • GetStoryViewers

      public GetStoryViewers(int storyId, TdApi.MessageViewer offsetViewer, int limit)
      Returns viewers of a recent outgoing story. The method can be called if story.canGetViewers == true. The views are returned in a reverse chronological order (i.e., in order of decreasing viewDate) For optimal performance, the number of returned stories is chosen by TDLib.

      Returns MessageViewers

      Parameters:
      storyId - Story identifier.
      offsetViewer - A viewer from which to return next viewers; pass null to get results from the beginning.
      limit - The maximum number of story viewers to return For optimal performance, the number of returned stories is chosen by TDLib and can be smaller than the specified limit.

      Returns MessageViewers

    • GetStoryViewers

      public GetStoryViewers(DataInput input) throws IOException
      Returns viewers of a recent outgoing story. The method can be called if story.canGetViewers == true. The views are returned in a reverse chronological order (i.e., in order of decreasing viewDate) For optimal performance, the number of returned stories is chosen by TDLib.

      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