Raw.messages.SearchResultsCalendar
Information about found messages sent on a specific day
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;
export namespace Raw {
export namespace messages {
export class SearchResultsCalendar {
constructor(params: {
inexact?: boolean;
count: number;
minDate: number;
minMsgId: number;
offsetIdOffset?: number;
periods: Array<Raw.TypeSearchResultsCalendarPeriod>;
messages: Array<Raw.TypeMessage>;
chats: Array<Raw.TypeChat>;
users: Array<Raw.TypeUser>;
}) {}
}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0x147ee23c
Property
inexact
: boolean or undefinedIf set, indicates that the results may be inexact
count
: numberTotal number of results matching query
minDate
: numberStarting timestamp of attached messages
minMsgId
: numberEnding timestamp of attached messages
offsetIdOffset
: number or undefinedIndicates 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 offsetIdOffset of count.
periods
: Array of Raw.TypeSearchResultsCalendarPeriodUsed 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
: Array of Raw.TypeMessageMessages
chats
: Array of Raw.TypeChatMentioned chats
users
: Array of Raw.TypeUserMentioned users