1.0.3 • Published 3 months ago
@skillfulai/telegram-template v1.0.3
Skillful AI Telegram Bot Template
A ready-to-use template for creating Telegram bots powered by Skillful AI agents. This template provides a simple way to create intelligent, conversational bots with rich features.
Features
- Full Skillful AI Agent integration
- Rich message formatting
- Conversation memory
- Built-in commands
Installation
npm install @skillfulai/telegram-template
Quick Start
- Create a
.env
file with your credentials:
TELEGRAM_TOKEN=your_telegram_bot_token
SKILLFUL_API_KEY=your_skillful_api_key
AGENT_NAME=Wojak
- Create your bot:
const SkillfulTelegramBot = require('@skillfulai/telegram-template');
const bot = new SkillfulTelegramBot();
bot.initialize().then(() => {
console.log('Bot is running...');
}).catch(error => {
console.error('Failed to start bot:', error);
});
Available Commands
Your bot comes with several built-in commands:
/start
- Welcome message and command overview/info
- Detailed agent information/skills
- List all available capabilities/clear
- Reset conversation history/status
- Check bot's operational status/help
- Display command help
Getting Started with Telegram
- Message @BotFather on Telegram
- Use the
/newbot
command - Choose a name and username for your bot
- Copy the provided token to your
.env
file
Support
For support with Skillful AI:
- Documentation: docs.skillfulai.io
- Discord: discord.gg/skillfulai
Requirements
- Node.js 14 or higher
- npm or yarn
- Telegram Bot Token
- Skillful AI API Key