messages.searchResultsCalendar
Information about found messages sent on a specific day
type tg.MessagesSearchResultsCalendar struct { /* ... */ }
Fields
| Name | Type | Required | Description |
|---|---|---|---|
Inexact | bool | — | If set, indicates that the results may be inexact |
Count | int | yes | Total number of results matching query |
MinDate | int | yes | Starting timestamp of attached messages |
MinMsgID | int | yes | Ending timestamp of attached messages |
OffsetIDOffset | int | — | Indicates the absolute position of messages[0] within the total result set with count count. This is useful, for example, if we need to display a progress/total counter (like photo 134 of 200, for all media in a chat, we could simply use photo ${offset_id_offset} of ${count}. |
Periods | []SearchResultsCalendarPeriod | yes | Used to split the messages by days: multiple SearchResultsCalendarPeriod constructors are returned, each containing information about the first, last and total number of messages matching the filter that were sent on a specific day. This information can be easily used to split the returned messages by day. |
Messages | []MessageClass | yes | Messages |
Chats | []ChatClass | yes | Mentioned chats |
Users | []UserClass | yes | Mentioned users |
Returned by
References
- Official documentation
- Generated Go reference
- TL definition:
messages.searchResultsCalendar#147ee23c