Class TdApi.GetChats

Enclosing class:
TdApi

public static class TdApi.GetChats
extends TdApi.Function
Returns an ordered list of chats in a chat list. Chats are sorted by the pair (chat.position.order, chat.id) in descending order. (For example, to get a list of chats from the beginning, the offsetOrder should be equal to a biggest signed 64-bit number 9223372036854775807 == 2^63 - 1). For optimal performance, the number of returned chats is chosen by TDLib.

Returns Chats

  • Field Details

    • chatList

      public TdApi.ChatList chatList
      The chat list in which to return chats.
    • offsetOrder

      public long offsetOrder
      Chat order to return chats from.
    • offsetChatId

      public long offsetChatId
      Chat identifier to return chats from.
    • limit

      public int limit
      The maximum number of chats to be returned. For optimal performance, the number of returned chats is chosen by TDLib and can be smaller than the specified limit, even if the end of the list is not reached.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
      Constant Field Values
  • Constructor Details

    • GetChats

      public GetChats()
      Returns an ordered list of chats in a chat list. Chats are sorted by the pair (chat.position.order, chat.id) in descending order. (For example, to get a list of chats from the beginning, the offsetOrder should be equal to a biggest signed 64-bit number 9223372036854775807 == 2^63 - 1). For optimal performance, the number of returned chats is chosen by TDLib.

      Returns Chats

    • GetChats

      public GetChats​(TdApi.ChatList chatList, long offsetOrder, long offsetChatId, int limit)
      Returns an ordered list of chats in a chat list. Chats are sorted by the pair (chat.position.order, chat.id) in descending order. (For example, to get a list of chats from the beginning, the offsetOrder should be equal to a biggest signed 64-bit number 9223372036854775807 == 2^63 - 1). For optimal performance, the number of returned chats is chosen by TDLib.

      Returns Chats

      Parameters:
      chatList - ChatList The chat list in which to return chats.
      offsetOrder - long Chat order to return chats from.
      offsetChatId - long Chat identifier to return chats from.
      limit - int The maximum number of chats to be returned. For optimal performance, the number of returned chats is chosen by TDLib and can be smaller than the specified limit, even if the end of the list is not reached.
    • GetChats

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