haskell-tdlib-2.0.63.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Query.GetChatMessagePosition

Synopsis

Documentation

data GetChatMessagePosition Source #

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

Constructors

GetChatMessagePosition 

Fields

  • chat_id :: Maybe Int

    Identifier of the chat in which to find message position

  • topic_id :: Maybe MessageTopic

    Pass topic identifier to get position among messages only in specific topic; pass null to get position among all chat messages

  • _filter :: Maybe SearchMessagesFilter

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

  • message_id :: Maybe Int

    Message identifier