Skip to content

💬 Object-oriented library for sending and receiving messages via Instagram

License

Notifications You must be signed in to change notification settings

Ber4tBey/insta.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Xiao

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

Installation

npm install @ber4tbey/insta.js

Example

Here is a simple ping command made with the library:

const Insta = require('@ber4tbey/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');

Owner

Androz2091
Androz
Author

Maintainers

Ber4tbey
Ber4tbey
Maintainer

Credits

🧡 Big thanks to Nerixyz and dilame for their libraries.* Androz2091

About

💬 Object-oriented library for sending and receiving messages via Instagram

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published