before_anything
If it's called in the current context of the conversation, it will always be executed, at the beginning of the block matching process.
Last updated
If it's called in the current context of the conversation, it will always be executed, at the beginning of the block matching process.
Last updated
This is one of the exceptional blocks that when executed does not stop the matching process for subsequent blocks.
before_anything(&block)
Platform | Supported |
---|---|
In the example below, before_anything
and any_text
will always be executed on arrival of a text message:
Messenger
Telegram