Layer 227
MessagesGetSearchResultsCalendar
Returns information about the next messages of the specified type in the chat split by days.
method
Users
messages.getSearchResultsCalendar#6aa3f6bd flags:# peer:InputPeer saved_peer_id:flags.2?InputPeer filter:MessagesFilter offset_id:int offset_date:int = messages.SearchResultsCalendar;
Parameters
| Name | Type | Description |
|---|---|---|
| Peer | InputPeer | Peer where to search |
| SavedPeerId | flags .2? InputPeer | Search within the saved message dialog with this ID. |
| Filter | MessagesFilter | Message filter, input Messages Filter Empty, input Messages Filter My Mentions filters are not supported by this method. |
| OffsetId | int | Offsets for pagination, for more info click here |
| OffsetDate | int | Offsets for pagination, for more info click here |
Returns
messages.SearchResultsCalendarGogram Example
// MessagesGetSearchResultsCalendar - positional arguments result, err := client.MessagesGetSearchResultsCalendar(&tg.InputPeerUser{UserID: int64(777000)}, nil, &tg.MessagesFilter{}, 42, 42) if err != nil { // handle error } // result is *tg.MessagesSearchResultsCalendar
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | FILTER_NOT_SUPPORTED | The specified filter cannot be used in this context. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |