Repository navigation
Add named chat management commands (/chats, /addchat, /rmchat, /defaultchat) - #72
Merged
Merged
Conversation
The `chats` table (named post targets, one marked default, used by post_message/post_to_telegram) was previously only manageable via MCP tools or the Admin Action API, with no way to manage it from Telegram itself. Add /chats, /addchat, /defaultchat, /rmchat commands mirroring the existing channel-commands.ts pattern, and sync BOT_COMMANDS plus the /start and /help text per project convention. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PkN4eRaXuCCNtezToQTFNn
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| 🔵 In progress View logs |
rss-bridge | 632269a | Sep 24 2026, 10:03 PM |
/set_default only covered message formatting; the check interval for newly registered channels was hardcoded to 30 minutes with no way to change it. Add a global config key (default_check_interval_minutes, via getGlobalCheckInterval/setGlobalCheckInterval) and wire it into /set_default delay <minutes>, replacing the hardcoded 30 in both auto-register-on-/sub and /add flows. Existing channels are unaffected and still use /delay @channel to change their own interval. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PkN4eRaXuCCNtezToQTFNn
EngDawood
marked this pull request as ready for review
September 24, 2026 22:03
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new set of Telegram bot commands for managing named chats—manual/AI-agent post targets that are distinct from auto-post channel subscriptions. Users can now create, list, set defaults, and remove named chats via dedicated commands.
Key Changes
New command module (
chat-commands.ts): Implements four new commands:/chats— List all configured named chats with their IDs, types, and default status/addchat name @user_or_id [type] [default]— Add or update a named chat, optionally setting it as default/rmchat name— Remove a named chat by name/defaultchat name— Set a named chat as the default post targetDatabase integration: Leverages existing
chatstable operations (getChats,getChatByName,upsertChat,removeChat,setDefaultChat)Channel resolution: Uses
resolveChannelhelper to convert usernames/IDs to chat IDs, supporting both numeric IDs and@usernameformatBot registration: Integrated into bot factory (
bot-factory.ts) alongside other command modulesHelp documentation: Updated
/helpand/startcommands to document the new chat management feature and distinguish it from channel subscriptionsCommand metadata: Added command descriptions to
BOT_COMMANDSfor Telegram's command menuImplementation Details
/addchatsupports optionaltypeparameter (defaults tochannel) anddefaultflag for setting as default in a single operationhttps://claude.ai/code/session_01PkN4eRaXuCCNtezToQTFNn