Skip to content

kenwoodjw/TG_GEMINI_BOT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prerequisites

Before you begin, ensure you have the following software installed:

  • Go (version 1.20 or higher)
  • Docker (optional, for containerized deployment)

Installing

  1. Install Go dependencies

    go mod tidy
  2. 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
  3. Running the Application

    go run main.go

Run from docker

```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

```

Deploy

You can click on the button below to deploy the bot to Zeabur.

Deploy on Zeabur

Reference

https://github.com/yihong0618/tg_bot_collections

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published