AI Summary: The documentation for long-polling incorrectly states that KeyboardInterrupt and shutdown signals are not handled. The actual code suppresses KeyboardInterrupt and correctly executes before_shutdown and after_shutdown signals, which contradicts the documentation. The proposed solution is to update the documentation to reflect the actual behavior of the code.
🐍 Асинхронный Python-фреймворк для разработки ботов MAX Bot API (max.ru)