Telollama is a fun Telegram bot project built with Deno and utilizes Ollama to enhance its functionality. The bot is designed for entertainment and interactive conversations with Telegram users, using the default Ollama model gemma2:2b
.
- 🤖 Telegram Bot Integration: Connects seamlessly with Telegram using Telegram Bot API.
- 💬 Ollama AI Integration: Uses Ollama for generating fun and intelligent responses.
-
Clone this repository:
git clone https://github.com/radyakaze/telollama.git cd telollama
-
Create a new Telegram bot using BotFather.
- Open BotFather on Telegram.
- Follow the instructions to create a new bot and get your bot token.
-
Set up your environment variables by creating a
.env
file and adding your Telegram bot token and Ollama model (optional):TELEGRAM_BOT_TOKEN=your_telegram_bot_token OLLAMA_MODEL=gemma2:2b # Change this to use a different Ollama model
-
Start the bot in development mode:
deno task dev
Just chat with the bot—have fun and enjoy the AI-powered responses! Hehe 😄
To change the default Ollama model, modify the OLLAMA_MODEL
variable in your .env
file. For example:
OLLAMA_MODEL=another_model_name
This allows you to experiment with different AI models depending on your use case.
- Deno - A modern runtime for JavaScript and TypeScript
- Telegram Bot API - For creating the bot
- Ollama AI - AI platform using the
gemma2:2b
model for generating responses
Contributions are welcome! Feel free to submit a pull request or open an issue to improve Telollama.
This project is licensed under the MIT License - see the LICENSE file for details.