Kogno
Search
K
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
Last modified 1yr ago