Closed dcts closed 3 years ago
@Bicepsfako I am happy to improve it, but maybe you could leave a hint why you think its bad. Anyways I was not sure if the feature is wanted at all, so I didnt implement the changes suggested by @Snowflake107 at all. When @Androz2091 agrees on the feature I will happily improve it :)
thanks @Androz2091 ! I updaed it! :)
Hey @Androz2091,
thanks a lot for this library, it's really usefull. I would love to contribute. For example it would be really usefull if the
Message
objects would not loose any information and store the whole message payload. This would make it easy to work with this library when you already know thedilame/instagram-private-api
repo, because it is the same object.I also added an example how to use the changes in this pull request. For example: when you send a DM to the bot of type
media_share
like this:You get the following metadata:
Let me know if you would like to see that as a function on the message object. For example I thought these two methods could be added:
Message.isMediaShare()
: returns true if the message is a media share.Message.extractMediaShareData()
: returns an object with extracted metadata of a media_share (as demoed in my extractMediaShareMetadata.js)Let me know if you think that is valuable and if you want me to continue :)