Module tdlight.api

Class TdApi.GetTopChats

Enclosing class:
TdApi

public static class TdApi.GetTopChats extends TdApi.Function<TdApi.Chats>
Returns a list of frequently used chats. Supported only if the chat info database is enabled.

Returns Chats

  • Field Details

    • category

      public TdApi.TopChatCategory category
      Category of chats to be returned.
    • limit

      public int limit
      The maximum number of chats to be returned; up to 30.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • GetTopChats

      public GetTopChats()
      Returns a list of frequently used chats. Supported only if the chat info database is enabled.

      Returns Chats

    • GetTopChats

      public GetTopChats(TdApi.TopChatCategory category, int limit)
      Returns a list of frequently used chats. Supported only if the chat info database is enabled.

      Returns Chats

      Parameters:
      category - TopChatCategory Category of chats to be returned.
      limit - int The maximum number of chats to be returned; up to 30.
    • GetTopChats

      public GetTopChats(DataInput input) throws IOException
      Throws:
      IOException
  • Method Details