When I am sending location to bot then I am getting two events with same JSON id

directmessages

#1

When I am sending location to bot then I am receiving event from webhook API two times with same id. I have attached JSON structure and image of our bot.

JSON response:
{“type”:“message_create”,“id”:“961821905375211524”,“created_timestamp”:“1518151186685”,“message_create”:{“target”:{“recipient_id”:“851395056368050178”},“sender_id”:“825925646295654405”,“message_data”:{“text”:" https://t.co/60W2LN4eCX",“entities”:{“hashtags”:[],“symbols”:[],“user_mentions”:[],“urls”:[{“url”:“https://t.co/60W2LN4eCX”,“expanded_url”:“https://twitter.com/i/location?lat=18.939393432810903&long=72.83784186467528”,“display_url”:“twitter.com/i/location?lat…”,“indices”:[1,24]}]},“attachment”:{“type”:“location”,“location”:{“type”:“shared_coordinate”,“shared_coordinate”:{“coordinates”:{“type”:“Point”,“coordinates”:[72.83784186467528,18.939393432810903]}}}},“quick_reply_response”:{“type”:"location"}}}}

Iamge:


#2

I’m not sure why this would be the case, but be aware that on Feb 15 the location sharing feature is being removed. https://blog.twitter.com/developer/en_us/topics/tools/2017/announcing-more-functionality-to-improve-customer-engagements-on-twitter.html