mic-bot/bot/ctx.ts
Dmitry Anderson e6ee3ee695 Minor changes
- Prod dockerfile changes + deno downgrade
- Locale files added
- Trying to make bot working with i18n
2024-10-27 18:49:21 +01:00

11 lines
416 B
TypeScript

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