Send Message on Instagram Using Instabot module in Python
In this article, we are going to see how to send messages on Instagram using the Instabot module in Python.
Instagram is a nice platform for chatting but when it comes to sending the same message to all friends this is a really boring and time-consuming task especially if you have a large number of followers. To make this easy we make a bot using Python to send messages on Instagram. So without further delay, let’s jump right in.
Instabot library: It is a script of promotion and API Python wrapper for Instagram.
pip install instabot
Step 1: First we import the Bot from the Instabot library and make a variable bot.
Step 2: Now we need to login into our account using the bot.
Step 3: It’s time to make a list of friends/followers to whom messages will be sent. Don’t forget any name because everyone is important.
Step 4: Write a message
Step 5: It’s time to send the message. To send messages to more person use the “send_messages” function and to send messages to a single person “send_message” function also can be used.
Below is the full implementation:
Note: Sometimes it’s difficult to rerun the program because of login errors to avoid this you need to delete a config folder that is auto-created after running the program once.