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.
deep_link(&block)
Platforms
Platform
Supported
Messenger
Telegram
Example Links
Messenger: https://m.me/kogno.io?ref=test
Telegram: https://t.me/KognoBot?start=test
Usage
class MainContext < Conversation
def blocks
deep_link do |value|
@reply.text("You just clicked on a link with the value #{value}!")
end
end
end value param
This param contains the value passed in the query string, for the example links above, the value is "test"
Last updated