Spaces:
Paused
Paused
Download Telegram_Job_Bot/fix_emojis.py from telegramjobupload/README: direct link, hf CLI and curl.
- Browser
- Download file 577 Bytes
-
https://huggingface.co/spaces/telegramjobupload/README/resolve/main/Telegram_Job_Bot/fix_emojis.py
- Command line
-
hf download hf://spaces/telegramjobupload/README/Telegram_Job_Bot/fix_emojis.py
-
curl -L -o fix_emojis.py https://huggingface.co/spaces/telegramjobupload/README/resolve/main/Telegram_Job_Bot/fix_emojis.py
577 Bytes
| import re | |
| with open('main.py', 'r', encoding='utf-8') as f: | |
| content = f.read() | |
| content = content.replace('dYs? *Instahyre Campaign Launched!*', '🚀 Instahyre Campaign Launched!') | |
| content = content.replace('*Instahyre Campaign Finished*', '✅ Instahyre Campaign Finished') | |
| content = content.replace('? *Instahyre Engine Crashed*', '❌ Instahyre Engine Crashed') | |
| content = content.replace('? *Instahyre Campaign Finished*', '✅ Instahyre Campaign Finished') | |
| with open('main.py', 'w', encoding='utf-8') as f: | |
| f.write(content) | |
| print("Fixed emojis in main.py") | |