import { type ParseModeFlavor } from "https://deno.land/x/grammy_parse_mode@1.10.0/mod.ts";
Context flavor for Context
that will be hydrated with
an additional set of reply methods from hydrateReply
Type Parameters
C extends Context
definition: C & { replyFmt: (stringLike: Stringable, ...args: Tail<Parameters<C["reply"]>>) => ReturnType<C["reply"]>; replyWithHTML: C["reply"]; replyWithMarkdown: C["reply"]; replyWithMarkdownV1: C["reply"]; replyWithMarkdownV2: C["reply"]; replyFmtWithPhoto: () => ReturnType<C["replyWithPhoto"]>; replyFmtWithMediaGroup: () => ReturnType<C["replyWithMediaGroup"]>; editFmtMessageMedia: () => ReturnType<C["editMessageMedia"]>; editFmtMessageText: () => ReturnType<C["editMessageText"]>; }
photo: Parameters<C["replyWithPhoto"]>[0],
other?: Omit<Exclude<Parameters<C["replyWithPhoto"]>[1], undefined>, "caption"> & { caption?: Stringable; },
...args: Tail<Tail<Parameters<C["replyWithPhoto"]>>>,
media: (Omit<Parameters<C["replyWithMediaGroup"]>[0][number], "caption"> & { caption?: Stringable; })[],
other?: Parameters<C["replyWithMediaGroup"]>[1],
...args: Tail<Tail<Parameters<C["replyWithMediaGroup"]>>>,
media: Omit<Parameters<C["editMessageMedia"]>[0], "caption"> & { caption?: Stringable; },
other?: Omit<Parameters<C["editMessageMedia"]>[1], "caption">,
...args: Tail<Tail<Parameters<C["editMessageMedia"]>>>,
text: Stringable,
other?: Parameters<C["editMessageText"]>[1],
...args: Tail<Tail<Parameters<C["editMessageText"]>>>,