tg_bot_collection https://github.com/yihong0618/tg_bot_collections.
This project would maximize the similarity with the original project such as core functions and usage.
Try https://t.me/tealmoon_ai_v1_alt_bot
- 2024/07/09
- chore: UX improvement
-
useful.py
: Let user know/answer_it
usage: Type or click the blue text. -
cohere.py
: Enable link preview disabled for cleaner output.
Run the bot with the following command after the Setup.:
source /etc/environment # Optional: Reload the environment keys
python3 tg.py ${TELEGRAM_BOT_TOKEN}
git checkout main
git pull origin main
# If Aborting due to local changes
# Option 1:
git stash
git pull origin main
git stash pop
# Option 2:
git diff --stat origin/main..HEAD
# Make sure your files that do not want to be overwritten are not in the list.
git reset --hard origin/main
git clone https://github.com/alterxyz/tg_bot_collections_lite
cd tg_bot_collections_lite
If you had environment api keys already, you can skip this step.
(run python3 env.py check
to check the environment keys status.)
- Run
python3 env.py init
- Edit the
token_key.json
file with your API key. - Run
sudo python3 env.py load
to load(overwrite) the environment keys from the "token_key.json" file.
- Paste the "token_key.json" file in the root directory of the project.
- Run
sudo python3 env.py load
to load(overwrite) the environment keys from the "token_key.json" file.
- Naming issue:
Rename useful.py
to something else, otherwise it will block other handlers.
Currently it is renamed to danger.py
, https://t.me/tealmoon_ai_v1_alt_bot all commands are working.
pip install openai
pip install telebot
pip install telegramify-markdown
pip install expiringdict
pip install google-generativeai
pip install together
pip install urlextract
pip install groq
pip install dify-client
pip install Markdown
pip install beautifulsoup4
pip install black
pip install cohere
(pip install --upgrade ${something}
for risk takers like me)
pip install -r requirements.txt
for Ubuntu
pip3 install -r requirements_win.txt
for Windows
See pyTelegramBotAPI
Try install FreeFileSync and run the SyncSettings.ffs_gui
file.
Or manually compare and edit the files.
- env.py
- example_token_key.json
- README.md
- init.py # Skipped same text to avoid Error message, since we are edit message frequently.
- Core codes
- most handlers