Kogno
Search…
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
Last modified 3mo ago
Copy link
On this page
any_text(&block)
Platforms
Usage