Skip to main content

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 week ago (0.3.0)

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.

f
convertJsonToFormData

Helper to convert JSON to FormData that can accept Telegram Bot API. if File is not top-level property it will be “attach://<file_attach_name>”

f
convertStreamToBuffer

Helper for convert Readable stream to buffer

f
extractFilesToFormData

Helper to extract files from params and convert them to FormData. (Similar to convertJsonToFormData) if File is not top-level property it will be “attach://<file_attach_name>”

f
isBlob

Guard to check is it Blob or Promise

f
isMediaUpload

Guard to check is method used for File Uploading

v
MEDIA_METHODS

A set of methods with the function of checking whether a File has been passed in the parameters

c
MediaInput

Class-helper with static methods that represents the content of a media message to be sent.

c
MediaUpload

Class-helper with static methods for file uploading.