Skip to content

Command reference ​

Language / 语言: 中文 · English

Permissions ​

  • User: any user who has not been blocked.
  • Admin: the IDs in ADMIN_IDS; OWNER_ID is included automatically.
  • Owner: OWNER_ID only. Sensitive operations — tokens, runtime configuration, bulk deletion and the block list — are not widened to Admin.

User commands ​

CommandDescription
/startWelcome message and menu
/submitStart a submission
/cancelCancel the current submission; outside a session it explains there is none in progress
/search <keyword>Search; supports #tag, -t day|week|month, -n <count>
/tagsTag cloud
/hot [count] [week]All-time hot list; /hot 20 for TOP 20
/hotweek [count]This week's hot list (natural week, Mon 00:00 local)
/myposts [count]Your submissions
/mystatsStatistics for your submissions
/settingsShow the current public configuration
/aboutAbout the bot (version and intro)
/statusView the most recent scheduled-run terminal state (public)
/helpHelp

Owner commands ​

CommandDescription
/debugDiagnostics for the current bot and runtime configuration
/pin_statusView the most recent scheduled-run terminal state and pin it to the current group/channel
/searchuser <user id>Look up a specific user's submissions
/delete_posts <id or range...>Bulk soft delete, at most 50 per call
/statsGlobal user, post, and reaction counts (Owner only)
/blacklistBlock-list panel
/blacklist_add <user id> [reason]Add to the block list
/blacklist_remove <user id>Remove from the block list
/blacklist_listShow the block list
/gen_token <name>Generate an API token; the plaintext is shown only once

/tokens and /revoke_token <number> only let the current user inspect or revoke their own tokens; new tokens can still only be created by the Owner through /gen_token.

Admin commands ​

CommandDescription
/scheduleManage scheduled tasks (see detailed section below)
/ban_user <user id> [reason]Manually block a user (fallback if buttons fail; use the anonymous ID from the admin alert)
/ban_api <token id> [reason]Manually disable an API token (fallback if buttons fail)
/rebuild_indexClear and rebuild the search index
/sync_indexIncrementally sync the database and the index
/index_statsShow the database/index difference
/optimize_indexMerge Whoosh index segments
/restore_card <review id> [--dry-run]Rebuild a review card that lost its buttons (read-only; send it to the target Bot)

/restore_card only acts on the Bot that receives it — every Bot has its own SQLite database and review ids collide. Only <review id>, #<review id> and an optional --dry-run are accepted; --bot, unknown or extra arguments return the usage text and touch no card. Rebuilding only edits that Telegram message's text and keyboard: it never reposts media, never changes the review state and never writes business data.

The approve, reject, spoiler-toggle and Pixiv-refetch buttons in the review group also require Admin. Refetch needs PIXIVFLOW_REFETCH_BASE_URL and PIXIVFLOW_REFETCH_TOKEN and only re-runs the original review's target_id; once admitted it is confirmed in the review group, and the new work still needs manual review.

What "🔄 Refetch / get another one" means ​

  • Refetch = get another candidate: it looks for a new work for the currently pending review that this review chain has not shown yet, and on success replaces it into the review queue; it does not re-download the same work.
  • If no new candidate exists, the current work stays unchanged and the group is notified; you can tap refetch again later once new work is available.
  • Repeated taps while a refetch is in progress do not create parallel jobs ("Refetching, please wait").
  • A successful refetch still requires manual review for the new work; the old work is marked as "superseded" and its buttons are disabled (operate on the latest review work).
  • The split-worker topology does not require PixivFlow and TelePost in the same container: PixivFlow stays stopped and is auto-woken by a refetch request, then stops again when done.

/botconfig (Owner only) ​

CommandDescription
/botconfigShow the panel
/botconfig channel @channel or -100IDChange the submission channel
/botconfig review hereMake the current group the review group
/botconfig review -100IDSet the review group by ID
/botconfig api_review on|offAPI review toggle (kept for compatibility; API submissions always enter review)
/botconfig miniapp_review on|offMini App review toggle
/botconfig chat_review on|offChat review toggle
/botconfig show_submitter on|offChannel attribution toggle
/botconfig resetDelete runtime overrides and fall back to the deployed configuration

Process the pending review queue before switching channel or review group, or running reset. A multi-bot supervisor restarts only the current bot; a single-bot deployment needs a manual restart after the policy is written.

/schedule (Admin command) ​

Admins can create recurring tasks so the bot automatically sends content (e.g. a weekly hot list) at a set time.

Interactive creation ​

Send /schedule (no args). The bot shows the task list or a create button. Tap "🔥 创建每周热榜":

  1. Pick a weekday (Mon–Sun buttons)
  2. Pick a time (presets 20:00 / 21:00 / 08:00 / 12:00, or send HH:MM directly)
  3. Pick the TOP count (5 / 10 / 20)
  4. Confirm the preview to create

One-line command ​

text
/schedule add weekly-hot <weekday> <HH:MM> <TOP N>

Example: /schedule add weekly-hot sunday 20:00 10

Management subcommands ​

CommandDescription
/scheduleList all tasks (with run/disable/delete buttons)
/schedule listList all tasks (same as the no-argument entry)
/schedule add weekly-hot <weekday> <HH:MM> <N>Create a weekly hot-list task
/schedule enable <id>Enable a task
/schedule disable <id>Disable a task
/schedule run <id>Run the task immediately (manual trigger)
/schedule preview <id>Preview the task output (no send)
/schedule delete <id>Delete a task

Notes ​

  • The target chat is the current bot's review group (REVIEW_CHAT_ID, falling back to CHANNEL_ID when unset)
  • Tasks are persisted in SQLite; the bot restores them after a restart
  • The same task will not send twice for the same time slot (idempotent)
  • Timezone uses the TZ env var (default Asia/Shanghai)
  • Manual runs do not affect the next scheduled occurrence

Submission flow commands ​

Send or forward attachments in a private chat to start a draft, then follow the reply to add tags or preview the draft. The attachment caption can fill the note, and its hashtags are imported automatically. Each submission requires an attachment and a tag. The title, note and link are optional.

CommandStageDescription
/done_mediaUploadFinish uploading and open the preview

The preview page lets you edit tags, title, note and link, add media, toggle anonymity and the spoiler, then publish or cancel. MIXED accepts both media and documents by default.

Notes ​

  • /hot reads the local database. The Telegram Bot API offers no side-effect-free way to read live view counts from arbitrary channel posts.
  • /search and /hot support pagination; /myposts outputs one message per item.
  • The block list intercepts both submissions and button interaction.

Pages marked (中文) are currently Chinese-only. Their English versions are being added incrementally.