Module tdlight.api

Class TdApi.GetChatMessagePosition

Enclosing class:
TdApi

public static final class TdApi.GetChatMessagePosition extends TdApi.Function<TdApi.Count>
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 Details

    • chatId

      public long chatId
      Identifier of the chat in which to find message position.
    • messageId

      public long messageId
      Message identifier.
    • filter

      Filter for message content; searchMessagesFilterEmpty, searchMessagesFilterUnreadMention, searchMessagesFilterUnreadReaction, and searchMessagesFilterFailedToSend are unsupported in this function.
    • messageThreadId

      public long messageThreadId
      If 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. 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 - 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

      public GetChatMessagePosition(DataInput input) throws IOException
      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
      Throws:
      IOException
  • Method Details