import { NextRequest, NextResponse } from "next/server"; import { ServiceParams } from "./service"; import { getService } from "./utils"; export const getBot = async ( _req: NextRequest, params: ServiceParams, ): Promise => getService(params)?.getBot(params); export const sendMessage = async ( req: NextRequest, params: ServiceParams, ): Promise => getService(params)?.sendMessage(req, params); export const handleWebhook = async ( req: NextRequest, params: ServiceParams, ): Promise => getService(params)?.handleWebhook(req);