@tritard/waterbrother 0.16.104 → 0.16.105
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/gateway.js +5 -1
package/package.json
CHANGED
package/src/gateway.js
CHANGED
|
@@ -3588,7 +3588,11 @@ class TelegramGateway {
|
|
|
3588
3588
|
const linkedSession = await loadSession(sessionId);
|
|
3589
3589
|
const sessionCwd = linkedSession.cwd || this.cwd;
|
|
3590
3590
|
const linkedProject = await loadSharedProject(sessionCwd).catch(() => null);
|
|
3591
|
-
|
|
3591
|
+
const preflightText = text.startsWith("/") ? "" : this.stripBotMention(text);
|
|
3592
|
+
const preflightStateIntent = preflightText ? parseTelegramStateIntent(preflightText) : null;
|
|
3593
|
+
if (!preflightStateIntent) {
|
|
3594
|
+
await this.maybeAnnounceRoomAgentEvents(message, linkedProject);
|
|
3595
|
+
}
|
|
3592
3596
|
|
|
3593
3597
|
if (text === "/about") {
|
|
3594
3598
|
await this.sendMessage(
|