23.1Kпросмотров
7 января 2023 г.
statsScore: 25.4K
Bot Update v1.29.0:
—————————— ⚙️ Improvements: - For topics groups: Bot command responses are sent now to the specific topic where the command was written (instead of General topic). - Improved detection and auto-deletion of 4 characters wrong captcha messages from users. - Normalization and common way to delete messages. - Updated all joincaptchabot code to support new python-telegram-bot v20. - Support for asyncio and replaced all Threads with coroutines. - Let System Signals detection be handled by PTB and have a clear and safe exit of the application. - Use logging module for all components. - Modernize some python code (i.e. f-string) - Updated and added missing docstrings for all functions. - Update all project components code-style according to PEP8 and checks-fixed style issues through pylint and flake8 tools. - Some explicit data types included to the code, and some checks-fixes with pyright and mypy. —————————— No news functionalities has been added in this version update, however a lot of improvements have been done to the code. This will help joincaptchabot in the future to allow get new functionalities and stay updated to new Telegram features. The use of python-telegram-bot v20, which is a major version update and is not retrocompatible with other previous versions, breaks a lot of things, so some critical code has been modified to support this new PTB version, so possible issues/bugs could have been introduced. Please, if you find any issue/bug, report it: https://github.com/J-Rios/TLG_JoinCaptchaBot/issues Due now all the Bot concurrency is now handled through asyncio coroutines instead of threads, there will be some impact in the CPU overload usage, it could be better or worst, only time will say that. For the moment, only public-free @join_captcha_bot account has been updated with this version. The private-pro @pro_join_captcha_bot account keeps the previous stable version to avoid any malfunction on it, and will be updated in the future when it is completely stable.