Socket
Socket
Sign inDemoInstall

iyarsius-insta.js

Package Overview
Dependencies
266
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    iyarsius-insta.js

Object-oriented library for sending and receiving messages via Instagram


Version published
Weekly downloads
2
Maintainers
1
Created
Weekly downloads
 

Readme

Source
Xiao

Insta.js

💬 Object-oriented library to interact with Instagram! Based on instagram-private-api, it is very similiar to discord.js.

Installation

npm install @androz2091/insta.js

Example

Here is a simple ping command made with the library:

const Insta = require('@androz2091/insta.js');

const client = new Insta.Client();

client.on('connected', () => {
    console.log(`Logged in as ${client.user.username}`);
});

client.on('messageCreate', (message) => {
    if (message.author.id === client.user.id) return

    message.markSeen();

    if (message.content === '!ping') {
        message.reply('!pong');
    }
});

client.login('username', 'password');

Credits

🧡 Big thanks to Nerixyz and dilame for their libraries.

FAQs

Last updated on 23 May 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc