Skip to main content

Module channel_handler

Module channel_handler 

Source
Expand description

Channel message handlers — routes incoming channel messages to the appropriate action.

Extracted from engine/mod.rs to keep the engine lifecycle code separate from message dispatch logic. All handler functions here are stateless with respect to the engine tick loop and operate only through the shared ref types passed in.

Structs§

PendingPick
A pending project selection waiting for the user to tap a button.

Functions§

buttons_for_picker
Build the list of (button_label, callback_data) pairs for a project picker.
parse_pick_callback
Parse a pick callback body of the form "pick:<original_msg_id>:<repo>".

Type Aliases§

PendingPicks
In-memory map of pending project picks, keyed by "<channel>:<original_msg_id>".