feat: allow dispatch /command to <input>

This commit is contained in:
Kyle Fang
2025-07-06 21:19:46 +08:00
parent dd2fafbada
commit 5b519638d3

View File

@@ -55,9 +55,11 @@ export class MtcuteAdapter {
if (handler) { if (handler) {
const app = handler(msg); const app = handler(msg);
await this.sendReactMessage(msg.chat.id, app); await this.sendReactMessage(msg.chat.id, app);
return;
} }
} }
} else if (msg.text) { }
if (msg.text) {
// Track if any input has autoDelete enabled // Track if any input has autoDelete enabled
let shouldDelete = false; let shouldDelete = false;