Commit Graph
43 Commits
Author SHA1 Message Date
esef 23b8c3722a Bundle Blue Archive roster, enable ffmpeg cog, refresh README 2026-09-15 15:13:13 +03:00
esefandClaude Opus 5 eac6dbda3a tgbridge: rework both directions — avatars, stickers, replies, edits
fixes that were dropping messages:
- d->tg sent parse_mode=Markdown with an unescaped body, so any message
  with a stray * _ ` or [ got a 400 from telegram and vanished. now html
  with proper escaping + a plain-text retry
- no allowed_mentions on webhook posts, so telegram could @everyone
- forwarder.start() ran from on_ready, which fires again on every gateway
  reconnect -> second poller on the same token -> 409s and dupes
- document.mime_type is nullable and was called directly
- sticker finally block hit UnboundLocalError when mkstemp raised
- ffmpeg timeouts leaked temp files and orphaned the process

stickers, per format instead of one blanket gif convert:
- static .webp now passes through (the gif convert crushed 228 alpha
  levels to 2 and made the file 4x bigger)
- video .webm -> animated webp, keeps 8-bit alpha, ~7x smaller than gif.
  needs -c:v libvpx-vp9 before -i or ffmpeg silently drops the alpha
- .tgs is gzipped lottie, ffmpeg exits 183 on it and we were uploading
  the raw file. renders via optional lottie lib, else thumbnail + emoji

added: telegram profile photos as webhook avatars (re-hosted in a private
channel, AVATAR_CACHE_CHANNEL_ID), reply threading both ways, edit sync
both ways, delete sync d->tg, album batching, voice/poll/location/contact/
dice/forward attribution, utf-16-safe entity conversion, mention and custom
emoji resolution, message splitting instead of truncation, shared aiohttp
session with 429 backoff, route discovery from env, !bridge status

main.py just loads the extension now; routes come from credentials.env

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RXrxDFpyq3VjvxWGuW3CZe
2026-09-07 12:19:18 +03:00
esef 30efb9105f rollback checkpoint: hardened gacha, disabled ffmpeg, deleted rio, async db 2026-08-03 20:05:45 +03:00
esef bf4ea13d4b bucketlist feature added 2026-07-20 23:16:25 +03:00
esef bce4d268a5 Remove 'archive' extension from bot loading
Removed loading of the 'archive' extension from the bot.
2026-07-20 22:19:43 +03:00
esef 7018366068 new timestamp feature and make tz data shared across cogs that need it 2026-07-20 21:18:43 +03:00
esef e11d712ba0 disable twitter bridge, fix rss stale-feed duplicate spam 2026-07-18 13:34:19 +03:00
esef 300f2fa8f0 harden twitter rss forwarder with timeout, rotation, link-only posts 2026-07-16 12:26:32 +03:00
esef 19e2db7fd4 fix little calendar bug 2026-07-13 00:53:08 +03:00
esef 1dcd53a581 calendar update 2026-07-13 00:12:51 +03:00
esef ab15f3ac8c website connected 2026-07-12 18:46:17 +03:00
esef 11d7c139e6 add sqlite inventory, per-banner spark, eligma, collection commands 2026-07-11 19:14:52 +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 d3ab71c97f automated update for the bot 2026-07-05 15:19:10 +03:00
esef 9d28bfb97f roles cog added music function polished 2026-07-05 14:42:33 +03:00
esef 58f46611a6 twitter leaks for mao 2026-07-01 17:33:36 +03:00
esef becfa5a568 archive command added, second statchannel added 2026-07-01 17:15:49 +03:00
esef 5b01800b1a forgot bleh 2026-07-01 00:07:39 +03:00
esef 21fa63b032 ssh connection feature added 2026-07-01 00:03:27 +03:00
esef 8b336ccced ai memory increased 2026-06-30 19:19:13 +03:00
esef 0f197addb0 fixed double prompt issue 2026-06-30 12:22:04 +03:00
esef d338e474b1 major ai update 2026-06-29 18:42:37 +03:00
esef 1283569622 ban commands added 2026-06-29 16:20:57 +03:00
esef a578c143e7 experiment - slash commands 2026-06-29 15:54:52 +03:00
esef 793311b1e2 polished forwarding 2026-06-29 15:32:44 +03:00
esef b3a7612e6b Add currency converter cog and aliases 2026-06-25 17:02:13 +03:00
esef b68802208a added ffmpeg features 2026-06-23 22:34:58 +03:00
esef 14e6778ce6 error logging for better debug 2026-06-23 19:14:19 +03:00
esef 0db51f9336 Completely disable !help and add second Telegram route 2026-06-23 18:47:21 +03:00
esef 8b3be80d42 channel stat checker added 2026-06-23 00:07:21 +03:00
esef 63e3ec7222 Remove !help and fix duplicate !strinova 2026-06-22 23:15:07 +03:00
esef 16e9b54a76 twitter forward feature 2026-06-22 22:36:26 +03:00
esef 1ce7ea15d9 Resolve merge conflict and add telegram forwarder 2026-06-22 22:17:20 +03:00
esef 77256f3881 fix 2026-06-22 22:15:45 +03:00
esef 8ee7447ae9 local changes 2026-06-22 22:01:20 +03:00
esef 2b26984698 telegram forwarding method added 2026-06-22 21:59:29 +03:00
esef 867b7d4fc0 import issue 2026-06-07 12:55:54 +03:00
esef da02b7f73e wrong path. 2026-06-07 12:53:59 +03:00
esef e7e9eb468e initial music commit 2026-06-07 12:49:25 +03:00
esef 2ecd6bc4cb updated main.py 2026-06-06 11:43:38 +03:00
esef d1327c95b0 add gif helper and copypasta feature 2026-06-06 11:13:08 +03:00
esef 5b58feb646 initial commit 2026-06-05 23:13:48 +03:00