feat(api,userbot,frontend): fetch only new messages in backfill by default
This commit is contained in:
@@ -358,11 +358,12 @@ export function listJobs(status?: JobStatus): Promise<JobView[]> {
|
||||
|
||||
export function enqueueBackfill(
|
||||
chatId: number,
|
||||
media: boolean
|
||||
media: boolean,
|
||||
full = false
|
||||
): Promise<{ job_id: number }> {
|
||||
return request<{ job_id: number }>("/backfill", {
|
||||
method: "POST",
|
||||
body: { account_id: accounts.selectedId, chat_id: chatId, media },
|
||||
body: { account_id: accounts.selectedId, chat_id: chatId, media, full },
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user