Package org.drinkless.tdlib
Class TdApi.GetChatSparseMessagePositions
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.TdApi.GetChatSparseMessagePositions
-
- Enclosing class:
- TdApi
public static class TdApi.GetChatSparseMessagePositions extends TdApi.Function
Returns sparse positions of messages of the specified type in the chat to be used for shared media scroll implementation. Returns the results in reverse chronological order (i.e., in order of decreasing messageId). Cannot be used in secret chats or with searchMessagesFilterFailedToSend filter without an enabled message database.Returns
MessagePositions
-
-
Field Summary
Fields Modifier and Type Field Description longchatIdIdentifier of the chat in which to return information about message positions.static intCONSTRUCTORIdentifier uniquely determining type of the object.TdApi.SearchMessagesFilterfilterFilter for message content.longfromMessageIdThe message identifier from which to return information about message positions.intlimitThe expected number of message positions to be returned; 50-2000.
-
Constructor Summary
Constructors Constructor Description GetChatSparseMessagePositions()Default constructor for a function, which returns sparse positions of messages of the specified type in the chat to be used for shared media scroll implementation.GetChatSparseMessagePositions(long chatId, TdApi.SearchMessagesFilter filter, long fromMessageId, int limit)Creates a function, which returns sparse positions of messages of the specified type in the chat to be used for shared media scroll implementation.
-
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
-
chatId
public long chatId
Identifier of the chat in which to return information about message positions.
-
filter
public TdApi.SearchMessagesFilter filter
Filter for message content. Filters searchMessagesFilterEmpty, searchMessagesFilterMention and searchMessagesFilterUnreadMention are unsupported in this function.
-
fromMessageId
public long fromMessageId
The message identifier from which to return information about message positions.
-
limit
public int limit
The expected number of message positions to be returned; 50-2000. A smaller number of positions can be returned, if there are not enough appropriate messages.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GetChatSparseMessagePositions
public GetChatSparseMessagePositions()
Default constructor for a function, which returns sparse positions of messages of the specified type in the chat to be used for shared media scroll implementation. Returns the results in reverse chronological order (i.e., in order of decreasing messageId). Cannot be used in secret chats or with searchMessagesFilterFailedToSend filter without an enabled message database.Returns
MessagePositions
-
GetChatSparseMessagePositions
public GetChatSparseMessagePositions(long chatId, TdApi.SearchMessagesFilter filter, long fromMessageId, int limit)Creates a function, which returns sparse positions of messages of the specified type in the chat to be used for shared media scroll implementation. Returns the results in reverse chronological order (i.e., in order of decreasing messageId). Cannot be used in secret chats or with searchMessagesFilterFailedToSend filter without an enabled message database.Returns
MessagePositions- Parameters:
chatId- Identifier of the chat in which to return information about message positions.filter- Filter for message content. Filters searchMessagesFilterEmpty, searchMessagesFilterMention and searchMessagesFilterUnreadMention are unsupported in this function.fromMessageId- The message identifier from which to return information about message positions.limit- The expected number of message positions to be returned; 50-2000. A smaller number of positions can be returned, if there are not enough appropriate messages.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-