Skip to content

Releases: gramiojs/files

v0.8.1

Choose a tag to compare

@github-actions github-actions released this 09 Sep 22:44
3e412d0

fix: detect nested rich media uploads
Full Changelog: v0.8.0...v0.8.1

v0.8.0

Choose a tag to compare

@github-actions github-actions released this 24 Aug 23:51
0043042

feat: support Bot API 10.3 rich uploads

ci: migrate npm publishing to OIDC
Full Changelog: v0.7.0...v0.8.0

v0.7.0

Choose a tag to compare

@github-actions github-actions released this 29 Jul 16:47
2d5bee5

thumbnail/photo/cover blob detection). Pin @gramio/types ^10.2.1.

feat: Bot API 10.2 — editEphemeralMessageMedia upload support (0.7.0)Regenerated MEDIA_METHODS to include editEphemeralMessageMedia (media/
Full Changelog: v0.6.1...v0.7.0

v0.6.1

Choose a tag to compare

@github-actions github-actions released this 03 Jun 16:07
2c1a811

for 2 GB — a local server already accepts 2 GB via normal upload)

  • correct MediaUpload.localPath JSDoc (file:// is an optimization, not required

  • auto strategy detects Windows absolute paths (C:, \) as local, not just /

    different path on the bot side resolves correctly

  • disk source: remap localDir -> mountDir so a shared volume mounted at a

fix(download): native Response.bytes(), mountDir remap, Windows path detection- bytes() uses native Response.bytes() when available (fallback otherwise)
Full Changelog: v0.6.0...v0.6.1

v0.6.0

Choose a tag to compare

@github-actions github-actions released this 03 Jun 13:25
b3152a4

2 GB file:// local-server upload. bytes() uses native Response.bytes() when available.

cloud/local-disk/baseURL-rewrite strategy, and MediaUpload.localPath() for the

a framework-agnostic downloadFile(bot, fileIdOrAttachment, path?) helper with a

.text()/.json()/.stream()/.toFile()/.link()/.info(); PromiseLike),

feat: file download API — downloadFile() + TelegramFileDownload + MediaUpload.localPath()Add a lazy, Response-like TelegramFileDownload handle (.bytes()/.blob()/
Full Changelog: v0.5.0...v0.6.0

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 08 May 17:33
77d0342
  • bump version to 0.5.0

  • @gramio/types peer dep bumped to ^10.0.0

    sendVideo, sendMediaGroup, sendPaidMedia, editMessageMedia

    setMyProfilePhoto, plus extra cover/photo/live_photo fields on

  • Regenerated MEDIA_METHODS picks up sendLivePhoto, sendPoll,

  • isBlob restored to warn once when it sees a Promise

    when the same field appears in multiple variants

    that live in a single union variant; falls back to "name" in params.X

  • Discriminator-based predicates (params.X?.type === "...") for fields

    bogus extractor entries

    so nested non-file objects like InputPollOption.media don't produce

  • Two-level walker that refuses to descend past one named-reference field,

    @gramio/schema-parser instead of reading ./tg-bot-api/public/dev/custom.min.json

feat: switch generator to @gramio/schema-parser, bump @gramio/types to v10- scripts/generate.ts now fetches the live Telegram Bot API schema via

chore: silence TS6 baseUrl deprecation in tsconfig

ci: use bunx tsc to pin typescript to local devDep
Full Changelog: v0.4.0...v0.5.0

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 15 Mar 00:59
09a0cc2

before each Telegram API call.

middleware that detects file uploads and converts Blob/File params to FormData

feat: add filesMiddleware for wrappergram middleware chainExports filesMiddleware from @gramio/files/middleware — a ready-to-use

Merge branch 'main' of https://github.com/gramiojs/files
Full Changelog: v0.3.1...v0.4.0

v0.3.2

Choose a tag to compare

@github-actions github-actions released this 01 Mar 11:32

chore: bump dependencies and version to 0.3.2
Full Changelog: v0.3.1...v0.3.2

v0.3.1

Choose a tag to compare

@github-actions github-actions released this 28 Feb 20:40
d5e730a

chore: skip undefined values in form data conversion

chore: ensure proper buffer conversion to Uint8Array for File constructor
Full Changelog: v0.3.0...v0.3.1

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 13 Apr 15:08
4cd2d19

chore: isEmpty

feat: media upload support for v9 Telegram Bot API

Full Changelog: v0.2.0...v0.3.0