messages.getSearchResultsCalendar #

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

Returns the results in reverse chronological order.
Can return partial results for the last returned day.

Layer 223

messages.searchResultsCalendar#147ee23c flags:# inexact:flags.0?true count:int min_date:int min_msg_id:int offset_id_offset:flags.1?int periods:Vector<SearchResultsCalendarPeriod> messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.SearchResultsCalendar;
---functions---
messages.getSearchResultsCalendar#6aa3f6bd flags:# peer:InputPeer saved_peer_id:flags.2?InputPeer filter:MessagesFilter offset_id:int offset_date:int = messages.SearchResultsCalendar;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
peerInputPeerPeer where to search
saved_peer_idflags.2?InputPeerSearch within the saved message dialog » with this ID.
filterMessagesFilterMessage filter, inputMessagesFilterEmpty, inputMessagesFilterMyMentions filters are not supported by this method.
offset_idintOffsets for pagination, for more info click here
offset_dateintOffsets for pagination, for more info click here

Result #

messages.SearchResultsCalendar

Only users can use this method #

Possible errors #

CodeTypeDescription
400FILTER_NOT_SUPPORTEDThe specified filter cannot be used in this context.
400PEER_ID_INVALIDThe provided peer id is invalid.

Saved messages #

The Saved Messages chat allows users to bookmark messages and media: it's a personal cloud storage for any messages or media you may want to send or forward there.

inputMessagesFilterEmpty #

Filter is absent.

inputMessagesFilterMyMentions #

Return only messages where the current user was mentioned.

Pagination in the API #

How to fetch results from large lists of objects.