jake-walker / instagram-discord-bridge

💬 A bot that 'syncs' messages between Instagram and Discord.
GNU General Public License v3.0
8 stars 2 forks source link

How to get the instagram thread ID ? #1

Closed Nyazuma closed 5 years ago

Nyazuma commented 5 years ago

Hello,

How do we get the Instagram thread ID please ? I know how to get it on Discord but I don't know how on Instagram.

Thank's

jake-walker commented 5 years ago

Hey @FaizaanMeghani,

Thanks for your interest! There is a feature that I made for this, but it's not documented at the moment. After setting up the configuration file just with an Instagram username and password like so:

module.exports = {
  instagram: {
    username: "myinstagramusername",
    password: "password"
  },
  discord: {
    token: "xxx"
  },
  mappings: [], // **NO MAPPINGS ARE REQUIRED
  webhooks: {} // **NO WEBHOOKS ARE REQUIRED
}

Then start the bot with node index.js and you get the following output:

With that, you can find the thread that you want to use and find the ID of it for use in the configuration file. For example, for my chat I would add a mapping like this:

{
  instagram: "34028236684...",
  discord: "49457849..."
}

Hope that helps!

Nyazuma commented 5 years ago

Thank's ! The bot works very well ! 👍