Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def lookup_location(sender_id)
- say(sender_id, 'Let me know your location:', TYPE_LOCATION)
- Bot.on :message do |message|
- if message_contains_location?(message)
- handle_user_location(message)
- else
- message.reply(text: "Please try your request again and use 'Send location' button")
- end
- wait_for_any_input
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement