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: 227

  • 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
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_id → long
│ ├── InputPeerUser
│ │ ├── user_id → long
│ │ └── access_hash → long
│ ├── InputPeerChannel
│ │ ├── channel_id → long
│ │ └── access_hash → long
│ │ ├── peer → InputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_id → int
│ │ └── user_id → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── channel_id → long
├── saved_peer_id → InputPeer (optional)
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_id → long
│ ├── InputPeerUser
│ │ ├── user_id → long
│ │ └── access_hash → long
│ ├── InputPeerChannel
│ │ ├── channel_id → long
│ │ └── access_hash → long
│ │ ├── peer → InputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_id → int
│ │ └── user_id → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── channel_id → long
├── filter → MessagesFilter
│ │ └── missed → true (optional)
├── offset_id → int
└── offset_date → int

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,
    )
)