Repository navigation
Releases: gramiojs/files
Release list
v0.8.1
fix: detect nested rich media uploads
Full Changelog: v0.8.0...v0.8.1
v0.8.0
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
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
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
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
-
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
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
chore: bump dependencies and version to 0.3.2
Full Changelog: v0.3.1...v0.3.2
v0.3.1
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