Before you begin, ensure you have the following software installed:
- Go (version 1.20 or higher)
- Docker (optional, for containerized deployment)
-
Install Go dependencies
go mod tidy
-
Configuring Environment Variables Obtain Telegram Bot API at BotFather
Get Gemini API keys from Google AI Studio
export GOOGLE_GEMINI_KEY='your_google_gemini_key' export TELEGRAM_BOT_TOKEN='your_telegram_bot_token
-
Running the Application
go run main.go
```sh
docker build -t tg_gemini_bot .
docker run -e GOOGLE_GEMINI_KEY='your_google_gemini_key' -e TELEGRAM_BOT_TOKEN='your_telegram_bot_token' tg_gemini_bot
```
You can click on the button below to deploy the bot to Zeabur.