mic-bot/bot/ctx.ts
2024-10-23 18:09:10 +02:00

13 lines
385 B
TypeScript

import { Context, SessionFlavor } from "https://deno.land/x/grammy@v1.30.0/mod.ts";
import { CaptchaSessionData } from "./normal_mode/captcha.ts";
interface SessionData {
captcha_data?: CaptchaSessionData
}
const defaultSessionData = (): SessionData => { return {} }
type Ctx = Context & SessionFlavor<SessionData>;
export type { SessionData, Ctx }
export { defaultSessionData }