Pixelfarm Airdrop Bot is a Telegram bot that automatically claims rewards from the Pixelfarm app when the farming session expires.
- Python 3.8.1
- pip (Python package installer)
Clone this repository to your local machine:
git clone https://github.com/xietsunzao/pixelfarm-auto-claim.git
cd pixelfarm-auto-claim
Install the required Python packages using requirements.txt:
pip install -r requirements.txt
Create a config.json file in the src/ directory with the following content:
{
"initData": "YOUR_TELEGRAM_INIT_DATA_HERE"
}
How to get initData:
- Open the Pixelfarm web app on Telegram.
- Open the developer tools (F12 or right-click and select "Inspect").
- Go to the "Application" tab.
- Expand the "Session Storage" section.
- Click key "__telegram_initParams".
- In the "Value" field, Copy the value of the "tgWebAppData" field with right-click and select "Copy value".
- Paste the value into the initData field in config.json.
Run the bot using the following command:
python main.py
The bot will now check for the farming session's status at regular intervals and automatically claim rewards when the session expires.
-
Dynamic Farming Session Duration : The bot automatically adjusts the farming session duration based on the number of trees:
- 4 hours if the player has only one tree.
- 12 hours if the player has more than one tree.
-
Automatic Claiming : The bot automatically claims rewards when the farming session expires and notifies the user of the status.
-
Manual Termination : The user can manually terminate the bot by pressing
Ctrl + C
in the terminal.
If you encounter any issues:
- Ensure you have the correct initData in config.json.
- Verify that Python 3.8.1 is installed.
- Check that all dependencies are installed using pip install -r requirements.txt.
- Ensure the bot has network access to reach the Pixelfarm API.
Contributions are welcome! Feel free to open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.