Skip to main content

@gramio/files@0.0.8

Set of utils for work with files and Telegram Bot API

Works with
This package works with Bun
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
JSR Score
100%
Published
a week ago

@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 JSR JSR Score

Please see Documentation and API Reference

Currently, support Telegram Bot API v7.3+

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
View transparency log

Add Package

deno add @gramio/files

Import symbol

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

Add Package

npx jsr add @gramio/files

Import symbol

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

Add Package

yarn dlx jsr add @gramio/files

Import symbol

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

Add Package

pnpm dlx jsr add @gramio/files

Import symbol

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

Add Package

bunx jsr add @gramio/files

Import symbol

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