Class TdApi.GetChatMessagePosition

Enclosing class:
TdApi

public static 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 and topic. Cannot be used in secret chats.

Returns Count

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    long
    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.
    Pass topic identifier to get position among messages only in specific topic; pass null to get position among all chat messages.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for a function, which returns approximate 1-based position of a message among messages, which can be found by the specified filter in the chat and topic.
    GetChatMessagePosition(long chatId, TdApi.MessageTopic topicId, TdApi.SearchMessagesFilter filter, long messageId)
    Creates a function, which returns approximate 1-based position of a message among messages, which can be found by the specified filter in the chat and topic.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class org.drinkless.tdlib.TdApi.Function

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • chatId

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

      public TdApi.MessageTopic topicId
      Pass topic identifier to get position among messages only in specific topic; pass null to get position among all chat messages.
    • filter

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

      public long messageId
      Message identifier.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • GetChatMessagePosition

      public GetChatMessagePosition()
      Default constructor for a function, which returns approximate 1-based position of a message among messages, which can be found by the specified filter in the chat and topic. Cannot be used in secret chats.

      Returns Count

    • GetChatMessagePosition

      public GetChatMessagePosition(long chatId, TdApi.MessageTopic topicId, TdApi.SearchMessagesFilter filter, long messageId)
      Creates a function, which returns approximate 1-based position of a message among messages, which can be found by the specified filter in the chat and topic. Cannot be used in secret chats.

      Returns Count

      Parameters:
      chatId - Identifier of the chat in which to find message position.
      topicId - Pass topic identifier to get position among messages only in specific topic; pass null to get position among all chat messages.
      filter - Filter for message content; searchMessagesFilterEmpty, searchMessagesFilterUnreadMention, searchMessagesFilterUnreadReaction, and searchMessagesFilterFailedToSend are unsupported in this function.
      messageId - Message identifier.
  • 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 class TdApi.Object
      Returns:
      this.CONSTRUCTOR