on_message
Method
This is a method of the BotProtocol class in the protocols module.Register a message handler.
Signature
Parameters
Function to call when a message is received
Returns
The handler function (for decorator use)
Register a message handler.
This is a method of the BotProtocol class in the protocols module.Register a message handler.
def on_message(handler: Callable[[BotMessage], Any]) -> Callable