mirror of
https://github.com/TheFunny/TelegramTwitterMediaBot.git
synced 2026-09-24 23:42:18 +00:00
execute_command reached for CHAT_STORE/LINK_CACHE/CONFIG in 16 places, which is why the one handler body with no test could not have one: those statics point at the real $DATA_DIR/task_queue.db, so any test would have written to the developer's state. It now takes &AppContext (the shape handle_message uses) and answers through the given sender; bot stays for what the MediaSender surface does not carry (channel admin lookups, the HTML report). Three tests cover what that unlocks: the settings/set_format round-trip against the chat's own store (including the refused placeholder), the admin gate on both admin-only commands, and /debug answering without sending.