Package org.drinkless.tdlib
Class TdApi.GetTopChats
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.TdApi.GetTopChats
-
- Enclosing class:
- TdApi
public static class TdApi.GetTopChats extends TdApi.Function
Returns a list of frequently used chats. Supported only if the chat info database is enabled.Returns
Chats
-
-
Field Summary
Fields Modifier and Type Field Description TdApi.TopChatCategorycategoryCategory of chats to be returned.static intCONSTRUCTORIdentifier uniquely determining type of the object.intlimitThe maximum number of chats to be returned; up to 30.
-
Constructor Summary
Constructors Constructor Description GetTopChats()Default constructor for a function, which returns a list of frequently used chats.GetTopChats(TdApi.TopChatCategory category, int limit)Creates a function, which returns a list of frequently used chats.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
Field Detail
-
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
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GetTopChats
public GetTopChats()
Default constructor for a function, which 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)
Creates a function, which returns a list of frequently used chats. Supported only if the chat info database is enabled.Returns
Chats- Parameters:
category- Category of chats to be returned.limit- The maximum number of chats to be returned; up to 30.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-