api.getChatMessageCalendar()
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 result for the last returned day. Behavior of this method depends on the value of the option "utc_time_offset"
Parameters
GetChatMessageCalendarParams
:chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
chatId | number | Identifier of the chat in which to return information about messages |
filter | Filter for message content. Filters searchMessagesFilterEmpty, searchMessagesFilterMention and searchMessagesFilterUnreadMention are unsupported in this function | |
fromMessageId | number | The message identifier from which to return information about messages; use 0 to get results from the last message |
Returns
ApiResponse
interface:interface ApiResponse {
_: 'getChatMessageCalendar' | 'error'
airgram: Airgram
request: {
method: 'getChatMessageCalendar'
params: GetChatMessageCalendarParams
}
response: |
setState: (nextState: Record<string, unknown>) => void
getState: () => Record<string, unknown>
}