🚀 Auto-deploy: BotVPS atualizado em 01/05/2026 21:16:46
This commit is contained in:
@@ -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:]}
|
||||
|
||||
Reference in New Issue
Block a user