haskell-tdlib-2.0.47.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Query.GetChatMessageCount

Synopsis

Documentation

data GetChatMessageCount Source #

Returns approximate number of messages of the specified type in the chat. Returns Count

Constructors

GetChatMessageCount 

Fields

  • chat_id :: Maybe Int

    Identifier of the chat in which to count messages

  • _filter :: Maybe SearchMessagesFilter

    Filter for message content; searchMessagesFilterEmpty is unsupported in this function

  • saved_messages_topic_id :: Maybe Int

    If not 0, only messages in the specified Saved Messages topic will be counted; pass 0 to count all messages, or for chats other than Saved Messages

  • return_local :: Maybe Bool

    Pass true to get the number of messages without sending network requests, or -1 if the number of messages is unknown locally