Introducing the GEMINI-PRO-BOT
The GEMINI-PRO-BOT is an innovative Telegram bot powered by Google's gemini-pro LLM API. It serves as a fascinating platform for users to explore and enjoy the creative potential of large language models. By employing Python, this bot enables users to generate a variety of text formats based on the input it receives, making it both a fun and interactive experience.
Key Features
The GEMINI-PRO-BOT boasts several exciting features:
- Creative Text Output: The bot can produce diverse text formats, including poems, scripts, musical pieces, and even coded algorithms, all based on the user's input.
- Real-Time Generation: Users can witness the text being generated live, adding an element of anticipation and excitement to the process.
- Interactive Replies: The bot uses Bard's API to provide engaging responses to user messages.
- User-Friendly Commands: A set of simple commands enhances usability:
/start
: Start interacting with the bot./help
: Learn about the bot's capabilities.
- Multi-Modal Support: Users can send text messages or images with captions, prompting the bot to generate responses that engage with both text and visual input.
- Secure Access: Authentication can be enabled via an
.env
file, restricting bot access to only authorized users if desired.
System Requirements
To run the GEMINI-PRO-BOT, you will need:
- Python 3.10 or higher
- A Telegram Bot API token
- A Google gemini-pro API key
- The
dotenv
package for managing environment variables
Docker Implementation
This project supports Docker, making deployment easier:
- Obtain the pre-built image from GitHub Container Registry using:
docker run --env-file .env ghcr.io/rabilrbl/gemini-pro-bot:latest
- Update the Docker image with:
docker pull ghcr.io/rabilrbl/gemini-pro-bot:latest
- Alternatively, build the Docker image yourself:
Run your built image with:docker build -t gemini-pro-bot .
docker run --env-file .env gemini-pro-bot
Installation Steps
To set up the GEMINI-PRO-BOT, follow these steps:
- Clone the repository.
- Install necessary dependencies using one of the following methods:
pipenv install
(if you use pipenv)pip install -r requirements.txt
(if you prefer pip directly)
- Configure a
.env
file with these variables:BOT_TOKEN
: Get your bot token from @BotFather.GOOGLE_API_KEY
: Acquire your API key from Google AI Studio.AUTHORIZED_USERS
: Optionally, list authorized Telegram usernames or user IDs to control bot access.
- Launch the bot using:
python main.py
(or with pipenv,pipenv run python main.py
)
Using the GEMINI-PRO-BOT
Once the setup is complete, start the bot and interact with it via your Telegram chat:
- Initiate the bot by executing the script.
- Engage with the bot by sending text or images, and enjoy the creative text generation in response.
Bot Commands Overview
Command | Functionality |
---|---|
/start | Begin chatting with the bot. |
/help | Discover what the bot can do. |
/new | Initiate a new session. |
Community and Contribution
The project actively welcomes contributions. Users are encouraged to fork the repository and submit pull requests, enriching the bot with new features and improvements.
Important Note
As the GEMINI-PRO-BOT is still under development, responses may occasionally be unexpected or imperfect. Users are encouraged to use the bot wisely and enjoy the creative possibilities it offers.
Licensing
This project is open-source, released under the GNU Affero General Public License v3.0. Full details are available in the LICENSE file.