messages.GetSearchResultsCalendar

class pyrogram.raw.functions.messages.GetSearchResultsCalendar

Returns information about the next messages of the specified type in the chat split by days.

Details:
  • Layer: 223

  • ID: 6AA3F6BD

Parameters:
  • peer (InputPeer) – Peer where to search

  • filter (MessagesFilter) – Message filter, inputMessagesFilterEmpty, inputMessagesFilterMyMentions filters are not supported by this method.

  • offset_id (int 32-bit) – Offsets for pagination, for more info click here

  • offset_date (int 32-bit) – Offsets for pagination, for more info click here

  • saved_peer_id (InputPeer, optional) – Search within the saved message dialog » with this ID.

Returns:

messages.SearchResultsCalendar

TL Schema

messages.getSearchResultsCalendar#6aa3f6bd
flags:#
peer:InputPeer
saved_peer_id:flags.2?InputPeer
filter:MessagesFilter
offset_id:int
offset_date:int

= messages.SearchResultsCalendar

Parameter Tree

GetSearchResultsCalendar
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
├── saved_peer_idInputPeer (optional)
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
├── filterMessagesFilter
│ │ └── missedtrue (optional)
├── offset_idint
└── offset_dateint

Example

await app.invoke(
    GetSearchResultsCalendar(
        peer=await app.resolve_peer(chat_id),
        saved_peer_id=await app.resolve_peer(chat_id),
        filter=InputMessagesFilterEmpty(),
        offset_id=0,
        offset_date=0,
    )
)