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