Home

Awesome

<div align="center"> <br> <a href=""> <img src="res/github/ollama-telegram-readme.png" width="200" height="200"> </a> <h1>🦙 Ollama Telegram Bot</h1> <p> <b>Chat with your LLM, using Telegram bot!</b><br> <b>Feel free to contribute!</b><br> </p> <br> <p align="center"> <img src="https://img.shields.io/docker/pulls/ruecat/ollama-telegram?style=for-the-badge"> </p> <br> </div>

Features

Here's features that you get out of the box:

Roadmap

Prerequisites

Installation (Non-Docker)

Installation (Docker Image)

The official image is available at dockerhub: ruecat/ollama-telegram

Installation (Build your own Docker image)

Environment Configuration

ParameterDescriptionRequired?Default ValueExample
TOKENYour Telegram bot token.<br/>[How to get token?]YesyourtokenMTA0M****.GY5L5F.****g*****5k
ADMIN_IDSTelegram user IDs of admins.<br/>These can change model and control the bot.Yes1234567890<br/>OR<br/>1234567890,0987654321, etc.
USER_IDSTelegram user IDs of regular users.<br/>These only can chat with the bot.Yes1234567890<br/>OR<br/>1234567890,0987654321, etc.
INITMODELDefault LLMNollama2mistral:latest<br/>mistral:7b-instruct
OLLAMA_BASE_URLYour OllamaAPI URLNolocalhost<br/>host.docker.internal
OLLAMA_PORTYour OllamaAPI portNo11434
TIMEOUTThe timeout in seconds for generating responsesNo3000
ALLOW_ALL_USERS_IN_GROUPSAllows all users in group chats interact with bot without adding them to USER_IDS listNo0

Credits

Libraries used