deep_link
If it's defined, this action block will be executed if the chat was opened through a link that contains a deep-link query string parameter.
The query string parameters are
ref
for Messenger and start
for Telegram.Platform | Supported |
---|---|
Messenger | |
WhatsApp | |
Telegram |
class MainContext < Conversation
def blocks
deep_link do |value|
@reply.text("You just clicked on a link with the value #{value}!")
end
end
end
This param contains the value passed in the query string, for the example links above, the value is
"test"
A deep-link can be handled by other context different than the default context, simply by passing the name of an existing context as a part of the parameter value:
Messenger:
?ref=context_name_some_value
Telegram:
?start=context_name_some_value
Last modified 6mo ago