Skip to main content
Home

Built and signed on GitHub Actions

Set of utils for work with files and Telegram Bot API

This package works with Node.js, Deno, Bun, BrowsersIt is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
a month ago (0.3.0)

@gramio/files

@gramio/files is set of utils for work with files and Telegram Bot API. You can also use it outside of GramIO framework because it is framework-agnostic.

npm npm downloads JSR JSR Score

Please see Documentation and API Reference

Examples

Example 1

import { MediaInput, MediaUpload } from "@gramio/files";

// method for sendMediaGroup
context.sendMediaGroup([
     MediaInput.document(
         MediaUpload.url(
             "https://raw.githubusercontent.com/gramiojs/types/main/README.md"
         )
     ),
     MediaInput.document(MediaUpload.path("./package.json")),
]);
Built and signed on
GitHub Actions

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@gramio/files

Import symbol

import * as files from "@gramio/files";
or

Import directly with a jsr specifier

import * as files from "jsr:@gramio/files";

Add Package

pnpm i jsr:@gramio/files
or (using pnpm 10.8 or older)
pnpm dlx jsr add @gramio/files

Import symbol

import * as files from "@gramio/files";

Add Package

yarn add jsr:@gramio/files
or (using Yarn 4.8 or older)
yarn dlx jsr add @gramio/files

Import symbol

import * as files from "@gramio/files";

Add Package

npx jsr add @gramio/files

Import symbol

import * as files from "@gramio/files";

Add Package

bunx jsr add @gramio/files

Import symbol

import * as files from "@gramio/files";