Send and receive Instagram direct message through CLI.
$ npm install -g igdm
Start the app with:
$ igdm
You will be prompted your credentials only for your first connection, on subsequent script starts it will load your credentials from a session file.
After being logged in, the list of the 20 latest conversations will appear, select a conversation with arrow keys and select it by pressing Enter key. Type a message and press Enter to send it.
On the chat screen (conversation listing message), instead of sending messages you can write commands:
\q
: Stops the process and leaves the app
\l
: Go back to conversation list
\r
, (or press Enter while input is empty): Refresh the current view and fetch latest messages
\logout
: Logout