Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def message_contains_location?(message)
- if attachments = message.attachments
- attachments.first['type'] == 'location'
- else
- false
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement