Created by @mrfox2003
This is a Telegram bot for an online treasure hunt game.
-
Install dependencies:
pip install -r requirements.txtif facing any issues Use pip with --break-system-packages
⚠️ Risky (can break system Python). If you’re okay with that, just run:pip install -r requirements.txt --break-system-packages -
Get your bot token from BotFather.
-
Create a
.envfile in the project root with the following content:BOT_TOKEN=your_bot_token_here OWNER_USER_ID=your_numeric_user_id_here SECRET_KEY=your_secret_key_here- Replace
your_bot_token_herewith your bot token - Replace
your_numeric_user_id_herewith your Telegram user ID (as an integer) - Replace
your_secret_key_herewith the secret key for the hunt
- Replace
-
Place your audio file at
audio/Echoes_of_the_Wasteland.mp3. -
Run the bot:
python bot.py
- User starts with
/start - Bot asks for the secret key
- If correct, asks for name
- Then asks for confirmation to receive audio
- If yes, sends audio and a long message
- Notifies the owner on successful key entry
- Ensure the audio file is in MP3 format.
- The long message in the code is a placeholder; replace it with your actual content.