/start
: Greet the bot and get started./help
: Get information about the bot's capabilities.AUTHORIZED_USERS
in the .env
file (optional).Simply run the following command to run the pre-built image from GitHub Container Registry:
docker run --env-file .env ghcr.io/rabilrbl/hugging-tg-chatbot:latest
Update the image with:
docker pull ghcr.io/rabilrbl/hugging-tg-chatbot:latest
Build the image with:
docker build -t hugging-tg-chatbot .
Once the image is built, you can run it with:
docker run --env-file .env hugging-tg-chatbot
pipenv install
(if using pipenv)pip install -r requirements.txt
(if not using pipenv).env
file and add the following environment variables:
BOT_TOKEN
: Your Telegram Bot API token. You can get one by talking to @BotFather.HF_EMAIL
: Your HuggingFace email address. (optional)HF_PASSWORD
: Your HuggingFace password. (optional)AUTHORIZED_USERS
: A comma-separated list of Telegram usernames or user IDs that are authorized to access the bot. (optional) Example value: shonan23,1234567890
python main.py
(if not using pipenv)pipenv run python main.py
(if using pipenv)python main.py
AUTHORIZED_USERS
in the .env
file to a comma-separated list of Telegram user IDs. Only these users will be able to access the bot.
Example:
AUTHORIZED_USERS=shonan23,1234567890
Command | Description |
---|---|
/start |
Greet the bot and get started. |
/help |
Get information about the bot's capabilities. |
/new |
Start a new chat session. |
/model |
Change the LLM model. |
/system_prompt |
Change the system prompt. |
We welcome contributions to this project. Please feel free to fork the repository and submit pull requests.
This bot is still under development and may sometimes provide nonsensical or inappropriate responses. Use it responsibly and have fun!
This is a free and open-source project released under the GNU Affero General Public License v3.0 license. See the LICENSE file for details.