🚀 Auto-deploy: BotVPS atualizado em 01/05/2026 21:16:46

This commit is contained in:
2026-05-01 21:16:46 +00:00
parent 922f36c0b8
commit 1c1fac3735
7 changed files with 653 additions and 567 deletions

View File

@@ -99,6 +99,14 @@ async def handle_message(update: Update, context: ContextTypes.DEFAULT_TYPE):
return
await update.message.reply_text("⚙️ *Processando tarefa...*", parse_mode='Markdown')
reply = await call_antigravity_api("/api/orchestrate", {"task": task})
elif text.startswith('/hermes'):
task = text.replace('/hermes', '').strip()
if not task:
await update.message.reply_text("❓ Envie a tarefa para o Hermes após o comando /hermes.")
return
await update.message.reply_text("🤖 *Hermes assumindo o controle. Isso pode demorar alguns minutos...*", parse_mode='Markdown')
# Bypass history and call hermes endpoint directly
reply = await call_antigravity_api("/api/hermes", {"task": task})
else:
await context.bot.send_chat_action(chat_id=chat_id, action="typing")
payload = {"text": text, "history": chat_histories[chat_id][-10:]}