mirror of
https://github.com/cdryzun/tg_bot_collections.git
synced 2025-04-29 00:27:09 +08:00
50 lines
1.5 KiB
Markdown
50 lines
1.5 KiB
Markdown
# tg_bot_collections
|
|
Collections of yihong0618's telegram bot
|
|
|
|
for yihong0618's channel: https://t.me/hyi0618
|
|
|
|
|
|
## Bot -> poster
|
|
|
|

|
|
|
|
## Bot -> pretty mapper
|
|
|
|

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

|
|
|
|
## HOW TO
|
|
|
|
1. pip install -r requirements.txt
|
|
2. Get tg token, ask Google or ChatGPT, need get it from [BotFather](https://t.me/BotFather)
|
|
3. python tg.py ${tg_token}
|
|
|
|
> [!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
|
|
|
|
- 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
|
|
- Telegram markdownV2 change code copy from https://github.com/yym68686/md2tgmd/blob/main/src/md2tgmd.py thanks a lot.
|
|
|
|
## Appreciation
|
|
|
|
- Thank you, that's enough. Just enjoy it.
|
|
|