You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(settings): remove drafts, fix global ignore, paginate /chats
- Remove drafts_enabled setting from UI, handler, utils, schema, README, system_messages
- Fix is_chat_ignored: global auto_reply=-1 now blocks all chats (per-chat override takes priority)
- Add pagination to /chats: _get_relevant_dialogs returns full sorted list, _build_styles_keyboard slices to visible_count with Show more button
- Register on_chats_more_callback handler for chatsmore: pattern in bot.py
- Show only per-chat auto-reply override icons in chat list (not global effective)
- Fix x402gate dashboard: call dash_stats.update_balance immediately after topup to prevent Topped Up miscalculation
- Fix trailing whitespace in clients/x402gate/__init__.py
- Update tests: remove drafts toggle tests, add global ignore / per-chat override / pagination / show-more tests
- Update test_database_users to use style instead of drafts_enabled in merge test
Copy file name to clipboardExpand all lines: README.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ python bot.py
70
70
| Command | Description |
71
71
|---------|-------------|
72
72
|`/start`| Welcome message and quick usage guide |
73
-
|`/settings`| Settings: drafts, model (FREE/PRO), prompt, communication style, auto-reply timer, timezone |
73
+
|`/settings`| Settings: model (FREE/PRO), prompt, communication style, auto-reply timer, timezone |
74
74
|`/chats`| Per-chat settings: individual style, auto-reply timer, and system prompt for each chat (connected users only) |
75
75
|`/poke`| Scan the 16 most recent private chats and draft replies to unanswered messages and follow-ups (connected users only) |
76
76
|`/status`| Connection status |
@@ -87,16 +87,15 @@ By default, `/connect` prompts for a phone number. A button below the message le
87
87
88
88
| Setting | Description | Default |
89
89
|---------|-------------|:-------:|
90
-
|**Drafts** (✏️) | Enable/disable draft instruction processing. When disabled, the bot won't edit drafts based on instructions but will continue creating auto-replies to incoming messages. | ✅ ON |
91
90
|**Model** (🤖) | AI mode: FREE (Gemini 3.1 Flash Lite) or PRO. In PRO mode, the model is selected by communication style: GPT-5.4 for most styles, Gemini 3.1 Pro Preview for seducer. | PRO |
92
91
|**Prompt** (📝) | Custom prompt: describe your persona and add instructions (max 600 chars). The AI uses this to build a *USER PROFILE & CUSTOM INSTRUCTIONS* block. **We recommend adding a self-description** — gender, age, occupation, and texting habits — so the AI mimics your style more accurately. Example: "I'm a 28 y/o guy, designer. I text short, 1–2 sentences, never use periods at the end. I swear a lot and use stickers." Applied to all chats. Applied to drafts and auto-replies. | ❌ OFF |
93
92
|**Style** (🦉/🍻/💕/💼/💰/🕵️/😈) | Communication style: Userlike, Friend, Romance, Business, Sales, Paranoid, Seducer. Sets the tone and manner of replies (including direct bot chat). | 🦉 Userlike |
94
-
|**Auto-reply** (⏰) | Auto-reply timer. If the user doesn't send the draft within the specified time, the bot sends the message itself. Options: OFF, 🔇 Ignore, 1 min, 5 min, 15 min, 1 hour, 16 hours. **Ignore** disables auto-sending globally but does **not** block draft generation (unlike per-chat 🔇 Ignore in `/chats`, which fully disables both drafts and auto-replies for that chat). Actual delay: from base to 2×base (e.g. 16 h → 16–32 h, avg 24 h). | OFF |
93
+
|**Auto-reply** (⏰) | Auto-reply timer. If the user doesn't send the draft within the specified time, the bot sends the message itself. Options: OFF, 🔇 Ignore, 1 min, 5 min, 15 min, 1 hour, 16 hours. **Ignore** disables drafts and auto-replies by default for all chats, but any per-chat override in `/chats` still takes priority. Actual delay: from base to 2×base (e.g. 16 h → 16–32 h, avg 24 h). | OFF |
95
94
|**Timezone** (🕐) | User timezone. The button shows the current time — tap to cycle through 30 popular UTC offsets (including +3:30, +4:30, +5:30, +9:30). Affects message timestamps in AI context. | UTC0 |
96
95
97
96
### Per-chat Settings (`/chats`)
98
97
99
-
The `/chats` command shows only chats where the bot has actually set a draft or replied, as well as chats with custom settings. Each chat is shown as a single button with the chat name.
98
+
The `/chats` command shows recent chats, prioritizing chats with per-chat auto-reply overrides first, then chats where the bot has replied or where custom per-chat settings already exist. Each chat is shown as a single button with the chat name.
100
99
101
100
Tapping a chat opens a **new message** with three vertical buttons:
0 commit comments