feat(userbot,api,frontend): backfill stories and unbreak all-stories list
This commit is contained in:
@@ -315,7 +315,7 @@ export function getMessageAt(chatId: number, date: string): Promise<MessageAt> {
|
||||
}
|
||||
|
||||
export function getStories(
|
||||
peerId: number,
|
||||
peerId: number | null,
|
||||
page: Page = {}
|
||||
): Promise<StoryView[]> {
|
||||
return request<StoryView[]>("/stories", {
|
||||
@@ -367,6 +367,15 @@ export function enqueueBackfill(
|
||||
});
|
||||
}
|
||||
|
||||
export function enqueueStoriesBackfill(
|
||||
peerId: number
|
||||
): Promise<{ job_id: number }> {
|
||||
return request<{ job_id: number }>("/stories/backfill", {
|
||||
method: "POST",
|
||||
body: { account_id: accounts.selectedId, peer_id: peerId },
|
||||
});
|
||||
}
|
||||
|
||||
export function discoverPeers(
|
||||
query: string,
|
||||
remote = false
|
||||
|
||||
Reference in New Issue
Block a user