Documentation Menu
Back to Channels

Telegram Bot Setup

HTTP API bot with polling/webhook support

Overview

The Telegram bot enables SingularCore to receive commands and send notifications through Telegram messaging platform. It supports both polling and webhook modes for maximum flexibility.

Difficulty

Easy

Setup Time

5 minutes

Notification Tiers

Normal, High, Urgent

Prerequisites

  • Telegram account
  • Python 3.9+
  • python-telegram-bot library
1

Create Bot with BotFather

  1. Open Telegram and search for @BotFather
  2. Send /start then /newbot
  3. Name your bot (e.g., MySingularCore)
  4. Choose username ending in bot
  5. Save the bot token provided by BotFather
2

Get Your Chat ID

Option A: Via @userinfobot

  1. Search for @userinfobot
  2. Click Start
  3. Copy your Chat ID
3

Configure Bot

Edit config/comms.json:

{
  "telegram": {
    "enabled": true,
    "bot_token": "YOUR_BOT_TOKEN",
    "allowed_chat_ids": ["YOUR_CHAT_ID"],
    "auto_setup": true
  }
}

Supported Commands

CommandDescriptionTier
/statusSystem health check0
/skillsList all skills0
/approveApprove pending action1+

Troubleshooting

Bot Not Responding

  • Check bot token is correct
  • Verify bot is added to chat
  • Check allowed_chat_ids includes your ID