Dmitry Anderson
e6ee3ee695
- Prod dockerfile changes + deno downgrade - Locale files added - Trying to make bot working with i18n
11 lines
416 B
TypeScript
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;
|