typescript-telegram-bot-api
Version:
Telegram Bot API wrapper for Node.js written in TypeScript
11 lines (10 loc) • 386 B
TypeScript
import { ReadStream } from 'fs';
import { FileOptions } from '../index';
/**
* ##
* InputFile
* This object represents the contents of a file to be uploaded. Must be posted using multipart/form-data in the usual
* way that files are uploaded via the browser.
* @see https://core.telegram.org/bots/api#inputfile
*/
export type InputFile = ReadStream | Buffer | File | FileOptions;