Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. def lookup_location(sender_id)
  2. say(sender_id, 'Let me know your location:', TYPE_LOCATION)
  3. Bot.on :message do |message|
  4. if message_contains_location?(message)
  5. handle_user_location(message)
  6. else
  7. message.reply(text: "Please try your request again and use 'Send location' button")
  8. end
  9. wait_for_any_input
  10. end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement