Sha256: 9274c40004a2736e1fe493db2fb84ca1286f9e077ca85fd3d00b834bdafd7759

Contents?: true

Size: 492 Bytes

Versions: 2

Compression:

Stored size: 492 Bytes

Contents

Bobot::Commander.on :message do |message|
  klass = message.quick_reply.present? ? Bobot::Postback : Bobot::Message
  klass.perform(message)
end

Bobot::Commander.on :postback do |postback|
  klass = Bobot::Postback
  klass.perform(postback)
end

# Bobot::Commander.on :optin do |optin|
#   optin.reply_with_text(text: 'Ah, human! Clicked on Send To Messenger')
# end
#
# Bobot::Commander.on :referral do |referral|
#   optin.reply_with_text(text: "Great you came from #{referal.ref}")
# end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bobot-1.0.53 lib/generators/bobot/templates/app/bobot/workflow.rb
bobot-1.0.52 lib/generators/bobot/templates/app/bobot/workflow.rb