Send Message on Instagram Using Instabot module in Python Last Updated : 31 Oct, 2021 Comments Improve Suggest changes Like Article Like Report 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. Module required: Instabot library: It is a script of promotion and API Python wrapper for Instagram. pip install instabotStepwise implementation: Step 1: First we import the Bot from the Instabot library and make a variable bot. Python3 # importing Bot form instabot library. from instabot import Bot bot = Bot() Step 2: Now we need to login into our account using the bot. Python3 # Login using bot bot.login(username="Your_username", password="Your_password") 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. Python3 # Make a list of followers/friends urer_ids = ["username1", "username2", "....."] Step 4: Write a message Python3 # Message text = "I like GFG" 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. Python3 # Sending messages to one or more friends bot.send_messages(text, urer_ids) Below is the full implementation: Python3 # Program to send message # on Instagram using Python. # importing Bot form instabot library. from instabot import Bot # Creating bot variable. bot = Bot() # Login using bot. bot.login(username="Your_username", password="Your_password") # Make a list of followers/friends urer_ids = ["username1", "username2", "....."] # Message text = "I like GFG" # Sending messages bot.send_messages(text, urer_ids) Output: 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. Comment More infoAdvertise with us Next Article Send Message on Instagram Using Instabot module in Python S siddharthsingh7898 Follow Improve Article Tags : Python python-utility python-modules Practice Tags : python Similar Reads Automate Instagram Messages using Python In this article, we will see how to send a single message to any number of people. We just have to provide a list of users. We will use selenium for this task. Packages neededSelenium: It is an open-source tool that automates web browsers. It provides a single interface that lets you write test scri 6 min read Download Instagram Posts Using Python Selenium module In this article, we will learn how we can download Instagram posts of a profile using Python Selenium module. Requirements:Google Chrome or FirefoxChrome driver(For Google Chrome) or Gecko driver(For Mozilla Firefox)Selenium package: It is a powerful tool for controlling a web browser through the pr 7 min read Send Text messages to any mobile number using Fast2SMS API in Python This article is going to be about how can we send text messages using Python. We will be using Fast2SMS API to send messages. You don't need to install any Python package for this purpose. First, you need a Fast2SMS account. You can sign up for Fast2SMS from here. Now, go to Dev API option and copy 2 min read Instagram Bot using Python and InstaPy In this article, we will design a simple fun project âInstagram Botâ using Python and InstaPy. As beginners want to do some extra and learning small projects so that it will help in building big future projects. Now, this is the time to learn some new projects and a better future. This python projec 3 min read Send message to FB friend using Python The power of Python comes because of the large number of modules it has. This time we are going to use one of those. Every one of us, one time or another, has a wish of the message (or spamming -.-) our Facebook friend. This is a program that can do something similar. So without further delay, letâs 3 min read Like