13 lines
385 B
TypeScript
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 }
|