This script uses the telethon
library to interact with Telegram and selenium
for automating actions in a web browser. Its goal is to monitor messages in a Telegram channel, extract game keys, and then attempt to claim them automatically on a Steam account.
- Python 3: You must have Python 3 installed on your machine.
- Python Libraries: You will need
telethon
,selenium
, andasyncio
. Install them using pip:pip install telethon selenium asyncio webdriver_manager
- Google Chrome and ChromeDriver: You must have Google Chrome and ChromeDriver installed.
- Obtain your
api_id
,api_hash
, andphone
from Telegram Apps. - Replace these values in the script accordingly.
- Telegram Channel: Define the
channel_username
of the channel that the bot should monitor. - Language: The script supports Spanish (
ESP
) and English (EN
). Configure thelanguage
according to your preference. - Chrome User Data Directory: Adjust
user_data_dir
to the path of your Chrome user profile directory.
The script performs the following actions:
- Message Monitoring: Listens for messages in the specified Telegram channel.
- Message Data Extraction: Extracts the name of the game and the key from the message.
- Claimed Games Verification: Checks if the game has already been claimed before.
- Browser Automation: Opens the activation URI in Chrome and performs automatic actions to claim the game.
- Error Handling: Detects and manages errors, such as keys already activated on another account.
To run the script, follow these steps:
- Make sure you have all dependencies installed and the environment set up as described above.
- Run the script in your Python environment:
python hunter.py
This script is open source and distributed under the MIT license.