MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / sendPhoto

Method sendPhoto

src/bot/types.ts:69–69  ·  view source on GitHub ↗

Best-effort: send an image (a preview screenshot) with an optional caption + buttons. Falls * back to a text message with a link when the adapter or file is unavailable.

(chatId: string, photoPath: string, caption?: string, buttons?: Button[][])

Source from the content-addressed store, hash-verified

67 /** Best-effort: send an image (a preview screenshot) with an optional caption + buttons. Falls
68 * back to a text message with a link when the adapter or file is unavailable. */
69 sendPhoto?(chatId: string, photoPath: string, caption?: string, buttons?: Button[][]): Promise<MessageRef>;
70
71 /** Best-effort: acknowledge a button tap so the client stops its spinner. */
72 ackCallback?(callbackId: string): Promise<void>;

Callers 1

presentCardMethod · 0.65

Implementers 1

TelegramTransportsrc/bot/adapters/telegram.ts

Calls

no outgoing calls

Tested by

no test coverage detected