forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiB0069847Burak Boduroğlu2 months ago552 commits

postChatbotMessage.ts9 lines, 351 bytesHistoryRawDownload
1import { client } from "../client";
2import type { AcceptedChatbotMessage } from "./types";
3
4export function postChatbotMessage(threadId: string, content: string): Promise<AcceptedChatbotMessage> {
5 return client<AcceptedChatbotMessage>(`/chatbot/threads/${encodeURIComponent(threadId)}/messages`, {
6 method: "POST",
7 body: { content },
8 });
9}