Telegram Setup
Connect your Vecbase agent to Telegram so users can chat with it directly in Telegram.Prerequisites
- A Telegram account
- A Vecbase agent created
Step 1: Create a Bot with BotFather
Create a new bot
Send
/newbot to BotFather. It will ask you for:- Bot name: A display name (e.g., “My Company Assistant”)
- Bot username: Must end with
bot(e.g.,mycompany_assistant_bot)
Step 2: Connect in Vecbase
Enter credentials
- Display Name: A name to identify this channel (e.g., “Customer Support Bot”)
- Bot Token: Paste the token from BotFather
Step 3: Test
Open Telegram, find your bot by searching its username, and send a message. Your Vecbase agent will respond automatically.Bot Settings (Optional)
You can customize your bot in BotFather:| Command | Description |
|---|---|
/setdescription | Set the bot’s description |
/setabouttext | Set the “About” text |
/setuserpic | Set the bot’s profile picture |
/setcommands | Set custom command menu |
Limitations
| Limit | Value |
|---|---|
| File upload | 50 MB (Bot API) |
| File download | 20 MB (getFile API) |
| Message length | 4,096 characters |
Telegram bots can work in both private chats and group chats. In groups, the bot responds when mentioned with
@botusername.
