Documentation Index Fetch the complete documentation index at: https://docs.archetypeai.app/llms.txt
Use this file to discover all available pages before exploring further.
Step 1: Create the Bot
Start Chat with BotFather
Initialize Bot Creation
Click Start
Type /newbot and follow the instructions in the chat
Get Bot Token
You’ll receive a message with the bot token. It should follow the format 12345812:AAHFfasdfasdf. Store it securely.
Example Bot Token Message
Done! Congratulations on your new bot. You will find it at t.me/testing_atai_bot.
Use this token to access the HTTP API:
796286017123123:AAHfDqivpCQXxM5SNt_BqBjNANddAdowHJASJU
Keep your token secure and store it safely, it can be used by anyone to control your bot.
Step 2: Get Your Chat ID
There are two simple ways to get your Chat ID:
Option 1: Using @WhatChatIDBot
Get Your Chat ID
The bot will give you a number - that’s your Chat ID (e.g., 908246003)
Option 2: Using @RawDataBot
Copy the ID Field
The bot will return JSON data. Copy the id field - that’s your Chat ID
Step 3: Add Your Credentials
Now you should have both:
Bot Token : 796286017123123:AAHfDqivpCQXxM5SNt_BqBjNANddAdowHJASJU
Chat ID : 908246003
Update Application Code
Add these credentials to your application:
app_telegram.py
Environment Variables (Recommended)
# Update these values in your code
BOT_TOKEN = "796286017123123:AAHfDqivpCQXxM5SNt_BqBjNANddAdowHJASJU"
CHAT_ID = "908246003"
Step 4: Test the Connection
Start the Application
Run the bot application: python app_telegram.py
Send Test Command
Send /start to your bot in Telegram
Verify Response
Your bot should respond with available commands and usage instructions