fix docker for tauri app
This commit is contained in:
@@ -897,7 +897,8 @@ export async function sendFamilyInvite(groupId: string, payload: { inviteeUserId
|
||||
return apiFetch<FamilyInvite>(`/family/groups/${groupId}/invites`, { method: 'POST', body: JSON.stringify(payload) }, token);
|
||||
}
|
||||
|
||||
export async function fetchBotChatMessages(botRef: string, token?: string | null) {
|
||||
export async function fetchBotChatMessages(botRef: string, token?: string | null, roomId?: string) {
|
||||
const suffix = roomId ? `?roomId=${encodeURIComponent(roomId)}` : '';
|
||||
return apiFetch<{
|
||||
messages?: BotChatMessage[];
|
||||
botUsername?: string;
|
||||
@@ -907,13 +908,13 @@ export async function fetchBotChatMessages(botRef: string, token?: string | null
|
||||
composerWebAppUrl?: string;
|
||||
composerMenuButtonJson?: string;
|
||||
manageWebAppUrl?: string;
|
||||
}>(`/bots/by-username/${encodeURIComponent(botRef)}/messages`, {}, token);
|
||||
}>(`/bots/by-username/${encodeURIComponent(botRef)}/messages${suffix}`, {}, token);
|
||||
}
|
||||
|
||||
export async function sendBotMessage(botRef: string, text: string, token?: string | null) {
|
||||
export async function sendBotMessage(botRef: string, text: string, token?: string | null, roomId?: string) {
|
||||
return apiFetch<{ updateId?: number; messageId?: number; chatId?: string }>(
|
||||
`/bots/by-username/${encodeURIComponent(botRef)}/messages`,
|
||||
{ method: 'POST', body: JSON.stringify({ text }) },
|
||||
{ method: 'POST', body: JSON.stringify({ text, roomId }) },
|
||||
token
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user