Your safe Jarvis: INTELECTO v2 and caixa-do-agente|INEMA.CLUB-PRO

Lesson 5 · 15 min

Vault, owner, and approval through Telegram

Telegram is optional. @BotFather is Telegram’s official account for creating bots; the token is your bot’s secret code, and the ID is your account number. The token stays in the vault; only registered IDs can talk to the bot. The project tests used a local fake server.

Start the lesson
Editorial photograph representing the vault, owner, and approval through Telegram.

In this lesson, you’ll

  1. 1Keep the token outside the config
  2. 2Find and register the owner ID
  3. 3Understand /sim and /nao without promising a live test

Objective: Prepare the token in the vault and set the owner ID so the bot only responds to the authorized person.

01Message until the reply

Without a registered owner, the bot only responds to /id.

Click each block in the diagram to see what it does.

Click each part to see what it does.

02Turn this on only if you plan to use it

Click each step to see what to do.

1. Create a bot

Open @BotFather in Telegram, send /newbot, choose a name, then choose a username that ends in bot. Copy the token you receive: it’s the bot’s secret code. Don’t paste it into USER.md, AGENTS.md, or config.json. @BotFather also sends your bot’s link in the format t.me/bot_name: open that link to chat with it.

03Optional sequence

Copy the commands and run them in the terminal from the specified folder.

Terminal · store the token and find your ID
cd ~/intelecto-v2
python3 -m intelecto cofre guardar telegram
python3 -m intelecto telegram
Terminal · register the owner and turn it on
cd ~/intelecto-v2
python3 -m intelecto configurar
python3 -m intelecto verificar
python3 -m intelecto telegram
In the bot chat · messages
/id
rode: echo teste > nota.txt
/nao
Repository example

Automated tests use a fake Telegram server: owner filtering, message format, and approval with /sim. INEMA has not tested the bot live.

04Check who can send messages

Optional. It depends on your bot and account; INEMA has not tested this integration live.

Complete the setup

8

If you use Telegram, get your /id, enter the number in configurar, and turn the bot on again. If you don’t use it, skip this step; it won’t block the rest of the course.

Done when: The bot replies to your ID; another account won’t get a reply, if you can test with one.

Check an approval

5

In your bot’s chat, send “rode: echo teste > nota.txt”. This asks for approval because it writes a file. Reply /nao first; use /sim only if you really want to create the file. Approval expires after 120 seconds without /sim or /nao.

Done when: The audit records the decision, and the command doesn’t run after /nao.

05Check your understanding

Choose before opening the explanation. If you get it wrong, use the link to review.

Question 1 of 3

Where should you store the bot token?

06Takeaways from this lesson

Separate tokenThe token stays in the vault; the ID stays in the configuration.
Proof limitThe automated test does not prove live operation on Telegram.

Sources and next steps

Previous lessonNext lesson