8000 GitHub - qbosen/tg_bot_collections: collections of yihong0618's telegram bot
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

qbosen/tg_bot_collections

 
 

Repository files navigation

tg_bot_collections

Collections of yihong0618's telegram bot

for yihong0618's channel: https://t.me/hyi0618

Bot -> poster

image

Bot -> pretty mapper

image

Bot -> Gemini player

  1. visit https://makersuite.google.com/app/apikey get the key
  2. export GOOGLE_GEMINI_KEY=${the_key}
  3. use gemini: ${message} to ask

telegram-cloud-photo-size-5-6336976091083817765-y

HOW TO Install and Run

Manually install

  1. pip install -r requirements.txt
  2. Get tg token, ask Google or ChatGPT, need get it from BotFather
  3. export GOOGLE_GEMINI_KEY=${your_google_gemini_apikey}
  4. python tg.py ${telegram_bot_token}

Run from Docker

  1. docker build -t tg_bot_collections .
  2. docker run -d --name tg_bot_collections -e GOOGLE_GEMINI_KEY='${GOOGLE_GEMINI_KEY}' -e TELEGRAM_BOT_TOKEN='${TELEGRAM_BOT_TOKEN}' --network host tg_bot_collections

Run as shell

Note, this may break your system config -> check this yihong0618#5

HOW TO Use

  1. Type /gemini: ${message} to ask
  2. Type gemini: ${message} and upload picture to ask with picture

Note

If you don't want to use one of these command, you can use --disable-command <command> option to disable it. This option can be used multiple times.

Contribution

  • Any issue reports or PRs are welcome.
  • Before PR, use pip install -U black then black . first

Acknowledge

Appreciation

  • Thank you, that's enough. Just enjoy it.

About

collections of yihong0618's telegram bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 68.8%
  • Shell 28.0%
  • Dockerfile 3.2%
0