Skip to main content
RedClaw
Telegram Bot Spec Generator

Telegram Bot for iGaming & Crypto — spec'd in 30 seconds

Pick a use case + region. Get commands, DB schema, n8n workflow JSON, compliance checklist, and monthly cost estimate.

Legal note for SEA (TH/VN/ID/PH): Indonesia bans gambling; Vietnam state monopoly; Thailand grey + PDPA

Commands

/startWelcome + sport selection inline keyboard
/sportsSubscribe sport-specific channel (NFL/Premier/IPL)
/alertsSet odds-movement threshold (e.g. ≥10%)
/pausePause notifications (cooling-off)
/helpCompliance disclaimer + helplines

DB schema (Postgres)

users
telegram_id PK, joined_at, region, lang, cooling_off_until
subscriptions
user_id FK, sport, league, threshold_pct, paused
odds_pushes
id, user_id, event_id, odds_delta, sent_at, clicked

Compliance checklist

  • Add 18+/21+ age gate as /start prerequisite
  • Display jurisdiction-specific helpline (e.g. BeGambleAware UK)
  • Auto-pause after 50 pushes/day (anti-addiction)
  • No real-money advice — odds info only

Monthly cost estimate

Hosting
$20
Database
$25
Total (× 1)
$45

n8n workflow JSON (preview)

{
  "name": "Odds Notifier Bot (RedClaw template)",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "telegram-webhook",
        "options": {}
      },
      "id": "webhook-1",
      "name": "Telegram Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        240,
        300
      ],
      "typeVersion": 1
    },
    {
      "parameters": {
        "conditions": {
          "string": [
            {
              "value1": "={{$json.message.text}}",
              "operation": "startsWith",
              "value2": "/"
            }
          ]
        }
      },
      "id": "switch-1",
      "name": "Is Command",
      "type": "n8n-nodes-base.if",
      "position": [
        460,
        300
      ],
      "typeVersion": 1
    },
    {
      "parameters": {
        "functionCode": "// Route by command\nconst cmd = $json.message.text.split(' ')[0];\nreturn [{ json: { cmd, raw: $json } }];"
      },
      "id": "fn-1",
      "name": "Parse Command",
      "type": "n8n-nodes-base.function",
      "position": [
        680,
        300
      ],
      "typeVersion": 1
    }
  ],
  "connections": {
    "Telegram Webhook": {
      "main": [
        [
          {
            "node": "Is Command",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is Command": {
      "main": [
        [
          {
            "node": "Parse Command",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "meta": {
    "generatedBy": "RedClaw Telegram Bot Spec Generator",
    "date": "2026-05-22T18:40:07.389Z"
  }
}

Download full spec as markdown

Hand it to your dev, or send it to us — we'll build it.