Version 1.1.0
What's Changed
-
Enhanced Import Statements: Added imports for
requestsandurllib.request, expanding the functionality for network operations and external requests. -
Configuration Updates:
- Introduced new variables
valid_api_keys,api_key, andchannel_idfor API key validation and Telegram integration. - Automated host IP detection using
urllib.request.urlopen.
- Introduced new variables
-
Telegram Notifications:
- Implemented a
tg_notifyfunction for sending notifications to a specified Telegram channel using the Telegram Bot API. - Integrated Telegram notifications at various stages of the API process, including connection attempts, wallet creation, and sweeping outcomes.
- Implemented a
-
IP Location Tracking:
- Added the
ip_locationfunction to determine the geographical location of the IP address making the API request. - Used
requests.getto fetch location data from an external IP location service.
- Added the
-
Enhanced API Endpoint (
/api) Functionality:- Improved error handling with redirection to
http://www.blockchain.comfor specific failure scenarios. - Introduced detailed logging of errors and critical events in
logfile.txt. - Enhanced security checks for valid API keys and handling unauthorized access attempts.
- Improved error handling with redirection to
-
Sweep Function Improvements:
- The
sweepfunction now includes enhanced error handling and logging. - Added notifications for different stages of the wallet sweeping process, including wallet creation, success, and failure scenarios.
- The
-
Dynamic Host and Port Configuration for Flask App:
- Flask app now automatically determines the host IP and sets the port to '5000'.
- Error handling for Flask server startup issues with logging and Telegram notification.
-
Overall Error Handling and Logging Enhancements:
- Improved overall robustness with comprehensive error capturing and handling mechanisms.
- Systematic logging of critical errors and operational information in
logfile.txtand via Telegram notifications.
Full Changelog: v1.0.0...v1.1.0