Collections of yihong0618's telegram bot
for yihong0618's channel: https://t.me/hyi0618
- visit https://makersuite.google.com/app/apikey get the key
- export GOOGLE_GEMINI_KEY=${the_key}
- use
gemini: ${message}
to ask
- Git clone this repo
- cd tg_bot_collections
- Edit setup.sh file and change the following variables
- python_bin_path (python3 path)
- project_path (this repo path)
- GOOGLE_GEMINI_KEY_Text (Google Gemini API KEY)
- Telegram_Bot_KEY_Text (Telegram Bot Token)
- Run
chmod +x setup.sh && ./setup.sh
orbash setup.sh
- Run
systemctl status tg_bot_collections
to check the status - Run
systemctl start tg_bot_collections
to start the service - Run
systemctl stop tg_bot_collections
to stop the service
- pip install -r requirements.txt
- Get tg token, ask Google or ChatGPT, need get it from BotFather
- export GOOGLE_GEMINI_KEY=${your_google_gemini_apikey}
- python tg.py ${telegram_bot_token}
- Type
/gemini: ${message}
to ask - 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.
- Any issue reports or PRs are welcome.
- Before PR, use
pip install -U black
thenblack .
first
- poster use my repo -> https://github.com/yihong0618/GitHubPoster
- pretty map use wonder repo -> https://github.com/chrieke/prettymapp
- Gemini use -> https://github.com/google/generative-ai-python
- Thank you, that's enough. Just enjoy it.