This library is not suitable for use in a production-ready environment. Whenever a new field appears in init_data, both validation and data parsing immediately break. I believe the library should be redesigned to handle new fields introduced by Telegram gracefully. Instead of returning objects, it should return a parsed dictionary with fields, leaving out validation (which it generally shouldn’t be responsible for).
This library is not suitable for use in a production-ready environment. Whenever a new field appears in init_data, both validation and data parsing immediately break. I believe the library should be redesigned to handle new fields introduced by Telegram gracefully. Instead of returning objects, it should return a parsed dictionary with fields, leaving out validation (which it generally shouldn’t be responsible for).