Class TdApi.GetChats

  • Enclosing class:
    TdApi

    public static class TdApi.GetChats
    extends TdApi.Function
    Returns an ordered list of chats. Chats are sorted by the pair (order, chatId) in decreasing order. (For example, to get a list of chats from the beginning, the offsetOrder should be equal to 2^63 - 1). For optimal performance the number of returned chats is chosen by the library.

    Returns Chats

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      int limit
      The maximum number of chats to be returned.
      long offsetChatId
      Chat identifier to return chats from.
      long offsetOrder
      Chat order to return chats from.
    • Constructor Summary

      Constructors 
      Constructor Description
      GetChats()
      Default constructor.
      GetChats​(long offsetOrder, long offsetChatId, int limit)
      Constructor for initialization of all fields.
    • Field Detail

      • 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. It is possible that fewer chats than the limit are returned even if the end of the list is not reached.
      • CONSTRUCTOR

        public static final int CONSTRUCTOR
        Identifier uniquely determining type of the object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • GetChats

        public GetChats()
        Default constructor.
      • GetChats

        public GetChats​(long offsetOrder,
                        long offsetChatId,
                        int limit)
        Constructor for initialization of all fields.
        Parameters:
        offsetOrder - Chat order to return chats from.
        offsetChatId - Chat identifier to return chats from.
        limit - The maximum number of chats to be returned. It is possible that fewer chats than the limit are returned even if the end of the list is not reached.