Class TdApi.GetForumTopics
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.ForumTopics>
dev.voroby.springframework.telegram.client.TdApi.GetForumTopics
- Enclosing class:
- TdApi
Returns found forum topics in a forum chat. This is a temporary method for getting information about topic list from the server.
Returns ForumTopics
-
Field Summary
Modifier and TypeFieldDescriptionlong
Identifier of the forum chat.static final int
Identifier uniquely determining type of the object.int
The maximum number of forum topics to be returned; up to 100.int
The date starting from which the results need to be fetched.long
The message identifier of the last message in the last found topic, or 0 for the first request.long
The message thread identifier of the last found topic, or 0 for the first request.Query to search for in the forum topic's name. -
Constructor Summary
ConstructorDescriptionDefault constructor for a function, which returns found forum topics in a forum chat.GetForumTopics
(long chatId, String query, int offsetDate, long offsetMessageId, long offsetMessageThreadId, int limit) Creates a function, which returns found forum topics in a forum chat. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function
toString
-
Field Details
-
chatId
public long chatIdIdentifier of the forum chat. -
query
Query to search for in the forum topic's name. -
offsetDate
public int offsetDateThe date starting from which the results need to be fetched. Use 0 or any date in the future to get results from the last topic. -
offsetMessageId
public long offsetMessageIdThe message identifier of the last message in the last found topic, or 0 for the first request. -
offsetMessageThreadId
public long offsetMessageThreadIdThe message thread identifier of the last found topic, or 0 for the first request. -
limit
public int limitThe maximum number of forum topics to be returned; up to 100. For optimal performance, the number of returned forum topics is chosen by TDLib and can be smaller than the specified limit. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
GetForumTopics
public GetForumTopics()Default constructor for a function, which returns found forum topics in a forum chat. This is a temporary method for getting information about topic list from the server.Returns
ForumTopics
-
GetForumTopics
public GetForumTopics(long chatId, String query, int offsetDate, long offsetMessageId, long offsetMessageThreadId, int limit) Creates a function, which returns found forum topics in a forum chat. This is a temporary method for getting information about topic list from the server.Returns
ForumTopics
- Parameters:
chatId
- Identifier of the forum chat.query
- Query to search for in the forum topic's name.offsetDate
- The date starting from which the results need to be fetched. Use 0 or any date in the future to get results from the last topic.offsetMessageId
- The message identifier of the last message in the last found topic, or 0 for the first request.offsetMessageThreadId
- The message thread identifier of the last found topic, or 0 for the first request.limit
- The maximum number of forum topics to be returned; up to 100. For optimal performance, the number of returned forum topics is chosen by TDLib and can be smaller than the specified limit.
-
-
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 classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-