belotserkovtsev / insta-bot

🚀 telegram bot which tracks instagram stats. powered by self-written instagram api and telegraf
https://t.me/stat_instabot
MIT License
1 stars 0 forks source link
instagram instagram-api telegram-bot

⛔️ WARNING!

The bot is being refactored. v.1.0 was a complete mess, so i decided to come up with a better logic and pattern. v.2.0 is coming soon!

🚀 Insta-bot

insta-bot is a Telegram bot which tracks instagram stats. It is fully written in Node.js and uses self-written Instagram API

Bot is able to track:

💻 Installation

Download and install the latest version of Node.js

Clone this repo, install dependencies and create some files:

git clone https://github.com/belotserkovtsev/insta-bot.git
cd insta-bot
npm install
mkdir cookie
mkdir userdata
echo {"users":[]} > botUsers.json

Add proxy and insert your bot token:

const socksAgent = new SocksAgent({
    socksHost: "8.8.8.8",
    socksPort: "888",
    socksUsername: 'username', //on need
    socksPassword: 'password' //on need
});
const bot = new Telegraf('token', {
    telegram: { agent: socksAgent }
});

Launch your application with pm2 or node

node index.js

🔮 Usage

📱 Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.