Client.on_message()¶
- Client.on_message()
Decorator for handling new messages.
This does the same thing as
add_handler()using theMessageHandler.- Parameters:
filters (
filters, optional) – Pass one or more filters to allow only a subset of messages to be passed in your function.group (
int, optional) – The group identifier, defaults to 0.