mic-bot/bot/ctx.ts

13 lines
385 B
TypeScript
Raw Normal View History

2024-10-19 10:00:35 +00:00
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
}
2024-10-23 16:09:10 +00:00
const defaultSessionData = (): SessionData => { return {} }
2024-10-19 10:00:35 +00:00
type Ctx = Context & SessionFlavor<SessionData>;
export type { SessionData, Ctx }
export { defaultSessionData }