Kogno
Search
⌃
K
Introduction
Getting Started
Conversation Class
Contexts
Blocks
before_anything
postback
deep_link
command
any_attachment
regular_expression
keyword
any_number
any_text
intent
entity
membership
recurring_notification
everything_else
after_all
Sub Contexts
Routing
Sequences
Conversational Forms
Replies / Notifications
Templates
Models
Scheduled Messages
Telegram Inline Query
Command Line
Global Methods
Internationalization
Powered By
GitBook
Comment on page
any_text
This block will be executed with any text message and will return as parameter the text message.
any_text(&block)
Platforms
Platform
Supported
Messenger
WhatsApp
Telegram
Usage
class
MainContext
<
Conversation
def
blocks
any_text
do
|
text
|
@reply
.
text
"You wrote: '
#{
text
}
'"
end
end
end
Previous
any_number
Next
intent
Last modified
1yr ago