mic-bot/bot/ctx.ts

11 lines
416 B
TypeScript
Raw Normal View History

import { Context, SessionFlavor } from "https://deno.land/x/grammy/mod.ts";
2024-10-19 10:00:35 +00:00
import { CaptchaSessionData } from "./normal_mode/captcha.ts";
import { I18nFlavor } from "https://deno.land/x/grammy_i18n/mod.ts";
2024-10-19 10:00:35 +00:00
export interface SessionData {
2024-10-19 10:00:35 +00:00
captcha_data?: CaptchaSessionData
}
export const defaultSessionData = (): SessionData => { return {} }
export type Ctx = Context & SessionFlavor<SessionData> & I18nFlavor;