any_text
This block will be executed with any text message and will return as parameter the text message.
any_text(&block)
any_text(&block)
Platforms
Platform
Supported
Messenger
Telegram
Usage
class MainContext < Conversation
def blocks
any_text do |text|
@reply.text "You wrote: '#{text}'"
end
end
end
Last updated
Was this helpful?