UNPKG

grammy-edit-or-reply

Version:

Exports utilities for grammy to edit a message or reply to a message based on the context

14 lines (13 loc) 531 B
import { MessageDataText, MessageDataMedia, MakeInlineResultReturn } from './types'; /** * Create an InlineResult for the given message specification. * * If a media is present it must be a `fileId`, as `InputFile`s are not * supported in inline results, and URLs would require extra metadata. * Use `messageDataHasNoInputFile` to help narrowing the type. */ export declare function makeInlineResult(messageData: MessageDataText | (MessageDataMedia & { media: { media: string; }; })): MakeInlineResultReturn;