Skip to main content

Overview

Telegram is the recommended starting channel for ArgentOS. Setup takes under 5 minutes and the Bot API is reliable and well-documented.

Prerequisites

  • A Telegram account
  • ArgentOS gateway running (argent gateway start)

Setup

1

Create a Bot with BotFather

  1. Open Telegram and search for @BotFather
  2. Send /newbot
  3. Choose a display name (e.g., “My Argent Agent”)
  4. Choose a username ending in bot (e.g., my_argent_bot)
  5. Copy the HTTP API token BotFather gives you
2

Add the Channel

When prompted, paste your bot token. The CLI will verify the token and save it to your config.
3

Configure (Optional)

Edit argent.json to customize Telegram-specific settings:
4

Test

Send a message to your bot on Telegram. You should see it appear in the gateway logs and receive a response.

Polling vs Webhook

The bot periodically checks for new messages. Simpler setup, works behind NAT.

Security

Restricting Access

By default, anyone who finds your bot can message it. Use allowedUsers to restrict access.

Supported Features