lib/bobot/configuration.rb in bobot-2.3.0 vs lib/bobot/configuration.rb in bobot-2.5.0

- old
+ new

@@ -131,10 +131,10 @@ ## == You can define the action to trigger when new humans click on == ## == the Get Started button. Before doing it you should check to select the == ## == messaging_postbacks field when setting up your webhook. == def set_get_started_button! raise Bobot::InvalidParameter.new(:access_token) unless page_access_token.present? - raise Bobot::InvalidParameter.new(:access_token) unless get_started_payload.present? + raise Bobot::InvalidParameter.new(:get_started_payload) unless get_started_payload.present? Bobot::Profile.set( body: { get_started: { payload: get_started_payload } }, query: { access_token: page_access_token }, ) end