any_text

This block will be executed with any text message and will return as parameter the text message.

any_text(&block)

Platforms

PlatformSupported

Messenger

WhatsApp

Telegram

Usage

class MainContext < Conversation

  def blocks

    any_text do |text|
      @reply.text "You wrote: '#{text}'"
    end

  end
  
end

Last updated