java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function<TdApi.MessagePositions>
it.tdlight.jni.TdApi.GetChatSparseMessagePositions
- Enclosing class:
- TdApi
public static final class TdApi.GetChatSparseMessagePositions
extends TdApi.Function<TdApi.MessagePositions>
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
Modifier and TypeFieldDescriptionlong
Identifier of the chat in which to return information about message positions.static final int
Identifier uniquely determining type of the object.Filter for message content.long
The message identifier from which to return information about message positions.int
The expected number of message positions to be returned; 50-2000.long
If not 0, only messages in the specified Saved Messages topic will be considered; pass 0 to consider all messages, or for chats other than Saved Messages. -
Constructor Summary
ConstructorDescriptionReturns 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, long savedMessagesTopicId) Returns sparse positions of messages of the specified type in the chat to be used for shared media scroll implementation.Returns sparse positions of messages of the specified type in the chat to be used for shared media scroll implementation. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
chatId
public long chatIdIdentifier of the chat in which to return information about message positions. -
filter
Filter for message content. Filters searchMessagesFilterEmpty, searchMessagesFilterMention, searchMessagesFilterUnreadMention, and searchMessagesFilterUnreadReaction are unsupported in this function. -
fromMessageId
public long fromMessageIdThe message identifier from which to return information about message positions. -
limit
public int limitThe 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. -
savedMessagesTopicId
public long savedMessagesTopicIdIf not 0, only messages in the specified Saved Messages topic will be considered; pass 0 to consider all messages, or for chats other than Saved Messages. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
GetChatSparseMessagePositions
public GetChatSparseMessagePositions()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, long savedMessagesTopicId) 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, searchMessagesFilterUnreadMention, and searchMessagesFilterUnreadReaction 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.savedMessagesTopicId
- If not 0, only messages in the specified Saved Messages topic will be considered; pass 0 to consider all messages, or for chats other than Saved Messages.Returns
MessagePositions
-
GetChatSparseMessagePositions
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:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
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
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-