Layer 228
MessagesSearchResultsCalendarObj
Information about found messages sent on a specific day
constructor
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;
Parameters
| Name | Type | Description |
|---|---|---|
| Inexact | flags .0? true | If set, indicates that the results may be inexact |
| Count | int | Total number of results matching query |
| MinDate | int | Starting timestamp of attached messages |
| MinMsgId | int | Ending timestamp of attached messages |
| OffsetIdOffset | flags .1? 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 | Vector<SearchResultsCalendarPeriod> | Used to split the messages by days: multiple Search Results Calendar Period 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 | Vector<Message> | Messages |
| Chats | Vector<Chat> | Mentioned chats |
| Users | Vector<User> | Mentioned users |
Returns
messages.SearchResultsCalendarGogram Example
// Creating MessagesSearchResultsCalendarObj constructor obj := &tg.MessagesSearchResultsCalendarObj{ Inexact: nil, Count: 20, MinDate: int(time.Now().Unix()), MinMsgId: 42, OffsetIdOffset: nil, Periods: []tg.SearchResultsCalendarPeriod{&tg.SearchResultsCalendarPeriodObj{}}, // ... more required fields }