// src/types/myContext.ts

import type { Context, SessionFlavor } from "grammy";
import type { ConversationFlavor, Conversation } from "@grammyjs/conversations";
import type { ParseModeFlavor } from "@grammyjs/parse-mode";
import type { UserDocument } from "@hereconnect/types";

export interface SessionData {
  step?: number;
  messageId?: number;
}

// Базовый контекст без conversation
interface MyContextBase {
  userDoc?: UserDocument;
}

export type MyContext = ParseModeFlavor<Context> &
  SessionFlavor<SessionData> &
  ConversationFlavor &
  MyContextBase;
