Commit Graph
22 Commits
Author SHA1 Message Date
esefandClaude Opus 5 78c755a7a2 tgbridge: support a self-hosted bot api server, and say when a file is too big
The cloud api refuses getFile over 20 MB, so an oversize video or gif never
reached ffmpeg and the bridge blamed the fetch. Six of the nine media
failures in the last month were that; the other three were a dropped read.

- config.local_api() turns TELEGRAM_API_BASE_URL into base_url/base_file_url/
  local_mode. Both directions read it, or only one of them migrates.
- in local mode getFile hands back a path on disk and ptb reads it directly,
  so there is no 20 MB cap and no http transfer to drop.
- MAX_INGEST_BYTES keeps that from being a way to pull a gigabyte into the
  bot's memory; falls back to stat() when the server omits file_size.
- explicit read_timeout: ptb defaults to 5s, which is what "Timed out" was.
  one retry covers a dropped read. BadRequest subclasses NetworkError, so it
  is re-raised first or an oversize rejection gets re-sent.
- the note now distinguishes too-large from could-not-fetch, and the warning
  records which attachment and which message.

Co-Authored-By: Claude Opus 5 <[email protected]>
2026-10-31 13:36:11 +03:00
esef 23b8c3722a Bundle Blue Archive roster, enable ffmpeg cog, refresh README 2026-09-15 15:13:13 +03:00
esef 23258f0c4b fuck 2026-08-03 20:29:42 +03:00
esef 30efb9105f rollback checkpoint: hardened gacha, disabled ffmpeg, deleted rio, async db 2026-08-03 20:05:45 +03:00
esef 66f9eb774c add bucketlist access control, drop credential hashing, gitignore radio_check 2026-07-25 13:10:00 +03:00
esef 4bb4fec2c5 gitignore: add _get_id.py and AGENTS.md, untrack AGENTS.md 2026-07-22 19:28:04 +03:00
esef f16d848e42 security audit 2026-07-13 11:01:42 +03:00
esef 4aecc81d2a icy metadata support for 30 radios added 2026-07-12 17:32:16 +03:00
esef 1fe1098a5e assets uploaded 2026-07-12 17:09:44 +03:00
esef 55824e8a5a update gitignore for gacha assets and ssh scripts 2026-07-11 18:00:46 +03:00
esef 95228a425d add blue archive gacha simulator cog with live banners and wiki portraits 2026-07-11 17:57:11 +03:00
esef c2133705fe trimmed down music.py 2026-07-09 17:40:23 +03:00
esef 71d2d7a563 update gitignore lol 2026-07-05 19:03:09 +03:00
esef 97c244ad51 used deque for more control 2026-07-05 16:51:20 +03:00
esef becfa5a568 archive command added, second statchannel added 2026-07-01 17:15:49 +03:00
esef c34e07205e added effort and thinking options 2026-06-30 12:16:27 +03:00
esef d338e474b1 major ai update 2026-06-29 18:42:37 +03:00
esef b3a7612e6b Add currency converter cog and aliases 2026-06-25 17:02:13 +03:00
esef 16e9b54a76 twitter forward feature 2026-06-22 22:36:26 +03:00
esef 13bf2c9eaf add gitignore 2026-06-22 22:01:49 +03:00
esef 6eb850b7b3 remove .vscode from repo 2026-06-07 13:45:17 +03:00
esef 5b58feb646 initial commit 2026-06-05 23:13:48 +03:00