- Enclosing class:
- TdApi
Returns approximate 1-based position of a message among messages,
which can be found by the specified filter in the chat. Cannot be
used in secret chats.
Returns Count
-
Field Summary
Modifier and TypeFieldDescriptionlong
Identifier of the chat in which to find message position.static final int
Identifier uniquely determining type of the object.Filter for message content; searchMessagesFilterEmpty, searchMessagesFilterUnreadMention, searchMessagesFilterUnreadReaction, and searchMessagesFilterFailedToSend are unsupported in this function.long
Message identifier.long
If not 0, only messages in the specified thread will be considered; supergroups only. -
Constructor Summary
ConstructorDescriptionReturns approximate 1-based position of a message among messages, which can be found by the specified filter in the chat.GetChatMessagePosition
(long chatId, long messageId, TdApi.SearchMessagesFilter filter, long messageThreadId) Returns approximate 1-based position of a message among messages, which can be found by the specified filter in the chat.GetChatMessagePosition
(DataInput input) Returns approximate 1-based position of a message among messages, which can be found by the specified filter in the chat. -
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 find message position. -
messageId
public long messageIdMessage identifier. -
filter
Filter for message content; searchMessagesFilterEmpty, searchMessagesFilterUnreadMention, searchMessagesFilterUnreadReaction, and searchMessagesFilterFailedToSend are unsupported in this function. -
messageThreadId
public long messageThreadIdIf not 0, only messages in the specified thread will be considered; supergroups only. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
GetChatMessagePosition
public GetChatMessagePosition()Returns approximate 1-based position of a message among messages, which can be found by the specified filter in the chat. Cannot be used in secret chats.Returns
Count
-
GetChatMessagePosition
public GetChatMessagePosition(long chatId, long messageId, TdApi.SearchMessagesFilter filter, long messageThreadId) Returns approximate 1-based position of a message among messages, which can be found by the specified filter in the chat. Cannot be used in secret chats.Returns
Count
- Parameters:
chatId
- Identifier of the chat in which to find message position.messageId
- Message identifier.filter
- Filter for message content; searchMessagesFilterEmpty, searchMessagesFilterUnreadMention, searchMessagesFilterUnreadReaction, and searchMessagesFilterFailedToSend are unsupported in this function.messageThreadId
- If not 0, only messages in the specified thread will be considered; supergroups only.Returns
Count
-
GetChatMessagePosition
Returns approximate 1-based position of a message among messages, which can be found by the specified filter in the chat. Cannot be used in secret chats.Returns
Count
- 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()
-