import { NextRequest, NextResponse } from "next/server"; import { getService } from "./utils"; const notFound = () => new NextResponse(null, { status: 404 }); export const getOneBot = async (req: NextRequest): Promise => notFound(); export const sendMessage = async (req: NextRequest): Promise => getService(req)?.sendMessage(req) ?? notFound(); export const receiveMessages = async ( req: NextRequest, ): Promise => getService(req)?.receiveMessages(req) ?? notFound(); export const handleWebhook = async (req: NextRequest): Promise => getService(req)?.handleWebhook(req) ?? notFound();