haskell-tdlib-2.1.31.0: Binding to the Telegram Database Library
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Query.GetChatMessageCounts

Synopsis

Documentation

data GetChatMessageCounts Source #

Returns approximate numbers of messages of the specified types in the chat or its topic. Returns ChatMessageCounts

Constructors

GetChatMessageCounts 

Fields

  • chat_id :: Maybe Int

    Identifier of the chat in which to count messages

  • topic_id :: Maybe MessageTopic

    Pass a topic identifier to get the numbers of messages only in a specific topic; pass null to get the numbers of messages in all topics; message threads aren't supported

  • filters :: Maybe [SearchMessagesFilter]

    Filters for message content; searchMessagesFilterEmpty is unsupported in this function

  • return_local :: Maybe Bool

    Pass true to get the numbers of messages without sending network requests; -1 is returned for the numbers of messages, which are unknown locally