How can I retrieve media of an audio direct message? The only url received in the webhook response for audio DMs (as seen below) is of the type ‘/media/xxxxxxxx’ which is unlike the url received in case of image DMs as processed in
https://developer.twitter.com/en/docs/twitter-api/v1/direct-messages/message-attachments/guides/retrieving-media
'direct_message_events': [{
'type': 'message_create',
'message_create': {
'message_data': {
'entities': {
'hashtags': [],
'symbols': [],
'urls': [{
'display_url': 'pic.twitter.com/PzN7MSIdGw',
'expanded_url': 'https://twitter.com/messages/media/1552943999727845380',
'url': 'https://t.co/PzN7MSIdGw',
'indices': [1, 24]
}
],
'user_mentions': []
},
'text': ' https://t.co/PzN7MSIdGw'
},
'sender_id': '2875341145',
'target': {
'recipient_id': '1040519931824164864'
}
},
'id': '1552943999727845380',
'created_timestamp': '1659085676496'
}
]
1 Like
Does anyone have any clue about how to retrieve the audio shared in DM ?
Is there any API available which will help us get the original audio using the link expanded_url ?
system
Closed
#4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.