Closed secchanu closed 1 year ago
Hello, sorry for the delay and thanks for your contribution!
I see a small mistake: MediaEntityV1 is used in TweetEntitiesV1, and TweetEntitiesV1 doesn't have the "type: media" https://developer.twitter.com/en/docs/twitter-api/v1/data-dictionary/object-model/entities
So instead of changing MediaEntityV1, could you update ReceivedMessageCreateDataV1?
Thank you!
@PLhery Thank you for your comment.
Instead of changing MediaEntityV1, I changed ReceivedMessageCreateDataV1.
Thank you!
(I'll create a new version tomorrow hopefully)
Sorry I forgot to create the new version, now available in 1.12.10 :)
the changes this PR
Fixes errors due to differences between MediaEntityV1 and the actual response type
why it should be merged
When run as per DownloadamediaattachedinaDM
The actual response of the event (DirectMessageCreateV1) was as follows.
※attachment is the type of MediaEntityV1 So,
urlOrDm = attachment.media_url_https
in downloadDmImage becomes undefinednote
Tried with 3 types: photo, video, animated_gif Please let me know if I missed something