keyword
This block will be executed if the message is one of the defined keywords.
Last updated
Was this helpful?
This block will be executed if the message is one of the defined keywords.
Last updated
Was this helpful?
Was this helpful?
keyword(String|Array, &block)
Messenger
Telegram
class MainContext < Conversation
def blocks
keyword ["stop","close","quit"] do
@reply.text "I'll stop responding you until you write the keyword 'start'"
end
keyword "start" do
@rsp.text("Great!")
@reply.text "Let's chat again! 😃"
end
end
end