Send messages
To send a message to a single person is simple using send_message() function.
Python3
from instabot import Bot bot = Bot() bot.login(username = "your_username" , password = "your_password" ) # Message # To send message to a single person. message = "I like GFG" bot.send_message(message, "geeks_for_geeks" ) |
Output:
To send the same message to many people.
Python3
from instabot import Bot bot = Bot() bot.login(username = "your_username" , password = "your_password" ) # Message # To send same message to many follower. message = "I like GFG" list_of_userid = [ "user_id1" , "user_id2" , "user_id3" , "..." ] bot.send_messages(message, list_of_userid) |
How to Make an Instagram Bot With Python and InstaBot?
In this article, we are going to see how to make an Instagram bot using Python and InstaBot.
Bots are really common these days to send messages, upload photos, send wishes, and many more things. Bots reduce our work, save time. Today we are creating an Instagram bot that can do the following things.
Contact Us