- 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
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
Methods 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 CONSTRUCTOR- 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. ReturnsCount
-
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. ReturnsCount
- Parameters:
chatId
- long Identifier of the chat in which to find message position.messageId
- long Message identifier.filter
- SearchMessagesFilter Filter for message content; searchMessagesFilterEmpty, searchMessagesFilterUnreadMention, searchMessagesFilterUnreadReaction, and searchMessagesFilterFailedToSend are unsupported in this function.messageThreadId
- long If not 0, only messages in the specified thread will be considered; supergroups only.
-
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. ReturnsCount
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-