How eeeob/pyroflow works
Pyroflow extends Kurigram/Pyrogram with awaitable message and callback waits, while optionally serializing updates that share a key. The main flow is a handler asking through a patched message or client, a listener matching the reply, and the dispatcher intercepting that update before ordinary handlers. Other documented branches provide coordination, filters, keyboards and pagination, and bot-command publication. Relationships involving unsampled implementations are included only where the README or source index supports them; source-level evidence is limited to the excerpts and index shown.
Main entry points: update_listener.py Update listeners · message.py Message methods · dispatcher.py Dispatcher · client.py Client API
Components 18
Conversation waits
- Client API
pyroflow/client/client.py - Message methods
pyroflow/types/message.py - Update listeners
pyroflow/update_listener/update_listener.py - Message and callback listeners
pyroflow/update_listener - Listener keys
pyroflow/models/listener_key.py - Wait state
pyroflow/models/listener_model.py
Update dispatch
- Dispatcher
pyroflow/dispatcher/dispatcher.py - Coordinated dispatcher
pyroflow/dispatcher/coordinated_dispatcher/coordinated_dispatcher.py - Coordination state
pyroflow/dispatcher/coordinated_dispatcher/models.py - Pyrogram patching
pyroflow/utils/patching.py
Bot interaction tools
- Text and rate filters
pyroflow/filters.py - Callback data
pyroflow/keyboards/callback_data.py - Keyboard layout
pyroflow/keyboards/layout.py - Pagination
pyroflow/keyboards/pagination.py
Bot commands
- Bot command mixin
pyroflow/client/bot_commands_mixin.py - Command declarations
pyroflow/utils/bot_commands.py
Other components
- Bot developer
- Kurigram runtime
Connections 21
- Bot developer → Client API: creates client
README.md - Bot developer → Message methods: awaits reply
README.md - Client API → Update listeners: registers listener
pyroflow/client/client.py - Message methods → Update listeners: awaits matching update
pyroflow/types/message.py - Message methods → Listener keys: derives wait key
pyroflow/types/message.py - Message and callback listeners → Update listeners: specialize
pyroflow/update_listener/__init__.py - Update listeners → Listener keys: files waits by
pyroflow/update_listener/update_listener.py - Update listeners → Wait state: tracks waits
pyroflow/models/listener_model.py - Kurigram runtime → Dispatcher: supplies updates
README.md - Dispatcher → Update listeners: offers update first
pyroflow/dispatcher/dispatcher.py - Dispatcher → Coordinated dispatcher: may be replaced by
README.md - Coordinated dispatcher → Coordination state: uses coordination state
pyroflow/dispatcher/coordinated_dispatcher/coordinated_dispatcher.py - Bot developer → Text and rate filters: configures filters
README.md - Bot developer → Callback data: defines callback data
README.md - Callback data → Text and rate filters: provides callback filter
pyroflow/keyboards/callback_data.py - Bot developer → Keyboard layout: arranges buttons
README.md - Bot developer → Pagination: builds pages
README.md - Pagination → Keyboard layout: arranges navigation
pyroflow/keyboards/pagination.py - Bot developer → Bot command mixin: opts into commands
README.md - Bot command mixin → Command declarations: collects declarations
pyroflow/client/bot_commands_mixin.py - Kurigram runtime → Pyrogram patching: classes patched in place
README.md