ping / instagram_private_api

A Python library to access Instagram's private API.
MIT License
3k stars 618 forks source link

How to send direct message? #161

Closed payanthe closed 5 years ago

payanthe commented 5 years ago

Please follow the guide below


Before submitting an issue, make sure you have:

Which client are you using?


Describe your Question/Issue:

How to Send Direct Message ?


r0und3r commented 5 years ago

As stated in the documentation, there is no implementation of sending direct messages and there are no plans to do so. https://instagram-private-api.readthedocs.io/en/latest/faq.html?highlight=direct%20message#how-to-direct-message-share

xecgr commented 5 years ago

@ping I have a feature request about this topic. I'm able to code it (I'm already on it and it's almost working full) Are you open to add this code to main branch?

lorenzogiustiniani80 commented 5 years ago

@xecgr it's great! finally a solution. Please, can you share your private direct functionality?

Thanks

phcamargo23 commented 4 years ago

Hi @xecgr , could you send me the solution too? Thanks.

phcamargo23 commented 4 years ago

Hello @ping , why "no plans to implement messaging or direct sharing"? Why won't you accept this PR?

dvingerh commented 4 years ago

Because it would be used for spam

steffanjensen commented 4 years ago

it can also be used to reply to messages.. come on

I made this one if someone needs it: https://github.com/instabotai/instabotai/blob/master/examples/reply_pending_inbox.py

steffanjensen commented 4 years ago

There can be many reasons why dev does not want to implement this feature.. We have to respect him, he could get in legal trouble at worst case.

But there isn't really a fully working api on github because each one lack some functionality, it could be nice if we could get a "complete" package.

If you look at his https://github.com/ping/instagram_private_api/blob/master/LICENSE there is no reason for us not to fork it and implement it our-self if we need.

ghrlt commented 2 years ago

For people still looking for a way of automating sending message on Instagram, checkout Instagrapi.

Everything is there