Começar

Quickstart

Do BotFather ao primeiro ask em minutos.

1. Criar o bot

  1. Abra @BotFather
  2. /newbot → nome e username
  3. Copie o token

Comandos sugeridos (/setcommands):

start - Vincula este chat ao Teleagent
status - Verifica se o bridge está online
pending - Lista decisões abertas
help - Como usar alertas e decisões

2. Instalar a CLI

git clone https://github.com/MatheusLTrindade/Teleagent.git
cd Teleagent
npm install
npm run build
npm link

3. Configurar e subir

teleagent setup --token <BOT_TOKEN> --allowed-user <SEU_TELEGRAM_USER_ID>
teleagent serve

No Telegram, abra o bot e envie /start (grava o chat_id). O --allowed-user restringe o bot ao seu user id.

4. Primeiro ask

teleagent ask \
  --project demo \
  --question "Tudo certo?" \
  --options "sim,não" \
  --json

Ou baixe o app Windows em /download e inicie o bridge pelo hub.