VicoErv / instagram-private-api

Instagram private api as Ruby gem
MIT License
41 stars 21 forks source link

thread.configure_text does not broadcast text #12

Open glennpjones opened 5 years ago

glennpjones commented 5 years ago

First of all, thanks for your work with this library @VicoErv!

I'm attempting to read out the direct messages, which works fine, and then send a response, through the API. However, I cannot get any type of text broadcasts (plain or with link) to work. Eventually I am trying to send a text with a link inside it.

To test: before accessing DM's through the API, I've made a message thread between two accounts, each having sent at least one message.

    account = IgApi::Account.new
    user = account.login(
      ENV['INSTAGRAM_USER'],
      ENV['INSTAGRAM_PASSWORD']
    )
    thread = IgApi::Thread.new
    thread.using(user)

    response = thread.configure_text(
      'name_of_the_receiving_account',
      'hello world'
    )
     # response should be 200 or OK or empty, but it returns
     # "Oops, an error occurred.\n"

I am happy to contribute of course, but could you give an indication of where to look or what it could be?