Setup Steps
Create a Telegram Bot
- Open Telegram and search for @BotFather
- Send
/newbotcommand - Follow the prompts to name your bot
- Copy the Bot Token (looks like
123456789:ABCdefGHIjklMNOpqrsTUVwxyz)
Get Your Chat ID
For personal chat:
- Start a chat with your new bot
- Send any message to the bot
- Visit:
https://api.telegram.org/bot<YOUR_BOT_TOKEN>/getUpdates - Find
"chat":{"id":123456789}- that number is your Chat ID
- Add your bot to the group
- Send a message in the group
- Visit the getUpdates URL above
- Group IDs are negative numbers (e.g.,
-1001234567890)
Configure in Spike
- Go to your Spike Dashboard
- Select your form → Settings
- Scroll to Integrations → Telegram
- Enable the toggle
- Enter your Bot Token
- Enter your Chat ID
- Save changes
Message Format
Spike sends a formatted message to Telegram:Using with Groups
To use Telegram notifications in a group:- Create your bot with BotFather
- Add the bot to your group
- Make the bot an admin (optional, but recommended)
- Get the group’s Chat ID (negative number)
- Use the group Chat ID in Spike
Troubleshooting
Messages not received
Messages not received
- Verify the Bot Token is correct
- Ensure you’ve started a conversation with the bot (for personal chats)
- Check that the Chat ID is correct
- For groups, make sure the bot is still a member
Finding Chat ID
Finding Chat ID
The easiest way is to use the getUpdates API:Send a message first, then check this URL.
Bot not responding
Bot not responding
- The bot only sends messages, it doesn’t respond to commands
- Make sure the bot token hasn’t been regenerated
- Try creating a new bot if issues persist