| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
ChatBot powered by OpenAI, the leading artificial intelligence platform.
This guide will walk you through the steps to run a Telegram bot locally using Java, system environment variables, and the OpenAI API.
To successfully run the Telegram bot locally, make sure you have the following:
Follow the steps below to set up and run the Telegram bot locally:
Clone or download the ChatBot project to your local machine.
$ git clone https://github.com/decoder-17/chatbot
Open your preferred IDE and import the project.
Set up system environment variables for your Telegram Bot Token and OpenAI API credentials:
setx CHAT_BOT_TOKEN "YOUR_TELEGRAM_BOT_TOKEN"
setx OPENAI_TOKEN "YOUR_OPENAI_TOKEN"export CHAT_BOT_TOKEN="YOUR_TELEGRAM_BOT_TOKEN"
export OPENAI_TOKEN="YOUR_OPENAI_TOKEN"In your IDE, locate the Main class and run it.
Congratulations! Your Telegram bot is now running locally and ready to respond to user queries.
This guide will walk you through the steps to run a Telegram bot locally using Docker, Java, system environment variables, and the OpenAI API.
To successfully run the Telegram bot locally, make sure you have the following:
Follow the steps below to set up and run the Telegram bot using Docker:
Clone or download the ChatBot project to your local machine.
$ git clone https://github.com/decoder-17/chatbot
Open your preferred IDE and import the project.
Build the Docker image using docker compose :
docker compose buildSet up system environment variables for your Telegram Bot Token:
setx CHAT_BOT_TOKEN "YOUR_TELEGRAM_BOT_TOKEN"
setx OPENAI_TOKEN "YOUR_OPENAI_TOKEN"export CHAT_BOT_TOKEN="YOUR_TELEGRAM_BOT_TOKEN"
export OPENAI_TOKEN="YOUR_OPENAI_TOKEN"Run the Docker container using the built image:
docker compose upCongratulations! Your Telegram bot is now running inside a Docker container and ready to respond to user queries.
To start the bot:
/start
To get help or to learn about the different commands available:
/helpTo search your query:
/search <type_your_query>To learn about the bot and it's creator:
/aboutFor support, email tanupamsaha26@gmail.com or raise an issue.
| Back | FazBrowse Home | New Git URL |