Buzz8nAI

Setting Up Telegram Bot Credentials

Learn how to create a Telegram bot and connect it to Buzz8n so you can send messages, notifications, and build interactive bots.

Time required: About 5 minutes
Prerequisites: A Telegram account

What You'll Get

After completing this guide, you'll have:

  • A Telegram bot with a unique token
  • Your Chat ID for sending messages to yourself
  • A configured credential in Buzz8n ready to use

Step-by-Step Guide

1

Open Telegram and Find BotFather

BotFather is Telegram's official bot for creating and managing other bots.

  1. Open Telegram (mobile app or desktop)
  2. In the search bar, type @BotFather
  3. Select the verified BotFather bot (it has a blue checkmark)
  4. Click "Start" to begin chatting with BotFather
Make sure you're chatting with the real BotFather (@BotFather) - there are fake bots with similar names!
2

Create Your Bot

Now let's create a new bot:

  1. Send the command /newbot to BotFather
  2. BotFather will ask for a name for your bot (e.g., "My Buzz8n Bot")
  3. Then it will ask for a username. This must:
    • End with "bot" (e.g., "mybuzz8n_bot")
    • Be unique across all of Telegram
    • Only contain letters, numbers, and underscores
  4. If the username is available, BotFather will create your bot and give you a token
3

Save Your Bot Token

After creating your bot, BotFather will send you a message containing your bot token. It looks like this:

1234567890:ABCdefGHIjklMNOpqrsTUVwxyz-1234567
Keep Your Token Secret!

Your bot token is like a password. Anyone with this token can control your bot!

  • Never share it publicly
  • Don't commit it to Git repositories
  • Store it securely in Buzz8n's credential system

Copy this token - you'll need it in the next steps.

4

Get Your Chat ID

To send messages to yourself, you need your Chat ID:

  1. Open Telegram and search for your bot using the username you just created (e.g., @mybuzz8n_bot)
  2. Click "Start" or send any message to your bot (e.g., "Hello")
  3. Now, open this URL in your web browser (replace YOUR_BOT_TOKEN with your actual token):
https://api.telegram.org/botYOUR_BOT_TOKEN/getUpdates

You'll see JSON data that looks like this:

{
  "ok": true,
  "result": [
    {
      "update_id": 123456789,
      "message": {
        "message_id": 1,
        "from": {
          "id": 987654321,
          "is_bot": false,
          "first_name": "Your Name"
        },
        "chat": {
          "id": 987654321,
          "first_name": "Your Name",
          "type": "private"
        },
        "text": "Hello"
      }
    }
  ]
}

Look for the "id" field under "chat". In this example, it's 987654321. That's your Chat ID!

If you don't see any results, make sure you sent a message to your bot first (Step 2 above).
5

Add Credential to Buzz8n

Now let's add your Telegram bot to Buzz8n:

  1. Log in to your Buzz8n dashboard
  2. Click "Credentials" in the top navigation
  3. Click "Add Credential" or the "+" button
  4. Select "Telegram" from the provider list
  5. Fill in the form:
    • Name: Give it a memorable name (e.g., "My Telegram Bot")
    • Bot Token: Paste the token from Step 3
  6. Click "Save"
Great! Your Telegram bot is now connected to Buzz8n and ready to use in workflows.
6

Test Your Credential

Let's make sure everything works:

  1. Create a new workflow or open an existing one
  2. Add a Telegram "Send a message" node
  3. Select your newly created credential
  4. Enter your Chat ID from Step 4
  5. Type a test message like "Testing my Telegram bot! 🎉"
  6. Run the workflow

You should receive the message on Telegram!

Advanced Configuration

How do I send messages to a group or channel?

To send messages to a Telegram group or channel:

  1. Add your bot to the group/channel
  2. For groups: Make your bot an admin (or allow bots to post)
  3. Get the group/channel Chat ID:
    • Send a message in the group/channel
    • Visit the getUpdates URL (same as Step 4)
    • Look for "chat" with "type": "group" or "supergroup"
    • The Chat ID might be negative (e.g., -1001234567890)
Can I customize my bot's profile picture and description?

Yes! Talk to BotFather and use these commands:

  • /setuserpic - Set a profile picture
  • /setdescription - Set the description users see when they start your bot
  • /setabouttext - Set the "About" text in your bot's profile
  • /setcommands - Set command buttons that appear in the chat
How do I regenerate my bot token if it's compromised?

If your bot token is exposed:

  1. Open a chat with @BotFather
  2. Send /mybots
  3. Select your bot
  4. Click "API Token"
  5. Click "Revoke current token"
  6. BotFather will generate a new token
  7. Update the token in your Buzz8n credential
The old token will stop working immediately after revocation!

Troubleshooting

"Bot token is invalid" error

If you're getting this error:

  • Make sure you copied the entire token (no spaces before/after)
  • Check that you didn't accidentally modify any characters
  • Verify the token hasn't been revoked
  • Try generating a new token from BotFather
"Chat not found" error

This usually means:

  • You haven't started a chat with your bot yet
  • The Chat ID is incorrect
  • The Chat ID might need to be negative (for groups)

Solution: Send a message to your bot, then get the Chat ID again using getUpdates.

Congratulations! Your Telegram bot is fully configured and ready to send messages through Buzz8n workflows.

What's Next?