Tg bot binding

From Starchild-ai-agent/official-skills · View interactive version

Tg bot binding is an AI agent skill from the GitHub repository Starchild-ai-agent/official-skills. Telegram bot binding: create the bot, connect to Starchild, verify, troubleshoot. Two ways to bind: (1) scan-to-create (recommended, auto-bind) or (2) manual BotFather + token + verify. Use when setting up Telegram delivery (e.g. add my TG bot, bot binding code, fix "telegram not pushing", whitelist

How to use this skill

Skill file

Telegram Bot Binding Guide

When the user asks about Telegram Bot binding, setup, connection, verification, or any related topic, provide them with the following guide. Always respond in the user's language.

Overview

Starchild lets you connect your own Telegram Bot so you can chat with your AI agent directly in Telegram. There are two ways to bind a bot:

  1. Scan to create bot (Recommended) — scan a QR code, confirm creation in Telegram, and Starchild completes the binding automatically. No token to copy, no verification code.
  2. Manual binding — create a bot via @BotFather, paste the token in the Dashboard, then verify ownership with a code.

Prefer the scan-to-create method whenever possible — it's faster and has fewer steps.


Method A: Scan to Create Bot (Recommended)

This method creates a new bot for you and binds it in a single flow — no token and no verification code.

Step 1: Open the Telegram Bot section

  1. Go to the Starchild Dashboard (web interface).
  2. Click your avatar at the bottom-left corner of the page.
  3. In the Account Management popup, find the Telegram Bot section.
  4. Click "Scan to create bot".

Step 2: Scan the QR code

A QR code appears together with a link. Do either of the following:

Step 3: Confirm creation in Telegram

Telegram opens a bot-creation page. Confirm that you want to create the bot.

Step 4: Done!

Starchild detects the new bot and completes the binding automatically. The bot goes straight to "running" — no verification code needed. Send /start in Telegram to begin chatting with your AI agent.

Note: A bot created this way is managed by Starchild's bot infrastructure. To remove it later, use the Delete Bot action in the Dashboard (not @BotFather).


Method B: Manual Binding (BotFather + Token)

Use this flow if you prefer to create and own the bot token yourself via @BotFather.

Step 1: Create a Telegram Bot via BotFather

  1. Open Telegram and search for @BotFather (the official Telegram bot for creating bots).
  2. Send /newbot to BotFather.
  3. Follow the prompts:
  1. BotFather will reply with your Bot Token — a string like 123456789:ABCdefGHIjklMNOpqrsTUVwxyz. Copy this token and keep it safe. Do not share it publicly.

Step 2: Add the Bot Token in Starchild Dashboard

  1. Go to the Starchild Dashboard (web interface).
  2. Click your avatar at the bottom-left corner of the page.
  3. In the Account Management popup, find the Telegram Bot section.
  4. Paste your Bot Token and submit.
  5. The system will:
  1. You will see the verification code displayed on the dashboard. Copy this code.

Step 3: Verify Bot Ownership in Telegram

You have two ways to verify:

Option A: Deep Link (Recommended)

Click the verification link provided on the dashboard. It will open your bot in Telegram and automatically submit the verification code. The link format is:

https://t.me/<your_bot_username>?start=verify_<CODE>
Option B: Manual Verification
  1. Open your bot in Telegram (search for @<your_bot_username>).
  2. Send /start — the bot will prompt you to enter the verification code.
  3. Type the 6-digit code and send it.

Step 4: Done!

Once verified, the bot status changes to "active" briefly, then automatically transitions to "running" — meaning your bot is live and ready. You can start chatting with your AI agent through Telegram. Send /start to see the welcome message and available commands.


Bot Status Reference

| Status | Meaning |

|--------|---------|

| pending | Bot token added, awaiting ownership verification (manual flow only) |

| active | Ownership verified, transitioning to running |

| running | Bot is live and ready to use |

| deleted | Bot has been removed by the user |


Troubleshooting

"Verification code expired"

The verification code is valid for 5 minutes. If it expires:

"Too many failed attempts"

After 5 incorrect attempts, the verification code is invalidated for security:

"Bot token is already registered by another user"

Each Bot Token can only be bound to one Starchild account. If you see this error:

"You already have an active bot"

Each account can only have one active bot at a time:

"Cooldown active — Please wait before adding a new bot"

After deleting a bot, you must wait 1 hour before adding a new one. The dashboard will show the cooldown expiration time.

"Too many attempts. Please wait a moment and try again."

The scan-to-create flow is rate-limited. If you see this message, wait a short while before clicking "Scan to create bot" again.

"Authorization expired. Please try again."

The scan-to-create QR code / link is only valid for a limited time. If it expires:

Bot is not responding in Telegram


Quick Reference

| Action | Where |

|--------|-------|

| Create + bind a bot (fastest) | Starchild Dashboard → bottom-left avatar → Account Management → Telegram Bot → "Scan to create bot" → scan QR code → confirm in Telegram |

| Create a new Telegram bot manually | Telegram → @BotFather → /newbot |

| Add bot token | Starchild Dashboard → bottom-left avatar → Account Management → Telegram Bot |

| Verify ownership | Telegram → Your bot → enter verification code |

| Refresh verification code | Starchild Dashboard → Account Management → Telegram Bot → "Refresh Code" |

| Delete bot | Starchild Dashboard → Account Management → Telegram Bot → "Delete Bot" |

| Check bot status | Starchild Dashboard → Account Management → Telegram Bot |


Important Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.