mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-11-28 02:40:53 +08:00
- Require https for base_url. The bot token travels in the URL path and the responses are the updates the bridge acts on, so plain http is accepted only with ARTEX_NOTIFY_ALLOW_LOCAL=1, for a local test server. - Cut replies by UTF-16 code units, which is how Telegram counts its 4096 limit, so emoji-heavy text is no longer rejected. A cut never splits a character. - Cap a server-sent retry_after at the backoff ceiling (1 minute). - Pause one second after an empty poll, so a self-hosted Bot API that ignores the long-poll timeout cannot spin the loop. - When the refused-chat memory is full, start over instead of muting every new chat, which also muted the operator's own chat. Saving the configuration of the same bot keeps the memory. - Fix two stale comments that said an empty allowlist keeps the bridge off (migration 0015 is unreleased, so editing its comment is safe). Co-authored-by: krad <222954346+dar1k0@users.noreply.github.com>