mirror of
				https://github.com/cdryzun/tg_bot_collections.git
				synced 2025-11-04 16:56:43 +08:00 
			
		
		
		
	
			
				
					
						
					
					66e3160f17c67195954d82f281637629d723db6d
				
			
			
		
	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
- visit https://makersuite.google.com/app/apikey get the key
 - export GOOGLE_GEMINI_KEY=${the_key}
 - use 
gemini: ${message}to ask 
Bot -> Claude 3
- visit https://console.anthropic.com/ get the key
 - export ANTHROPIC_API_KEY=${the_key}
 - use 
claude: ${message}to ask 
HOW TO Install and Run
Manually install
- 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}
 
Run from Docker
- docker build -t tg_bot_collections .
 - 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 https://github.com/yihong0618/tg_bot_collections/issues/5
HOW TO Use
- 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.
Contribution
- Any issue reports or PRs are welcome.
 - Before PR, use 
pip install -U blackthenblack .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.
 
					Languages
				
				
								
								
									Python
								
								93.4%
							
						
							
								
								
									Shell
								
								6%
							
						
							
								
								
									Dockerfile
								
								0.6%