Closed ResulBulbul closed 4 years ago
What's the code you're running and do you've 2fa enabled ?
What's the code you're running and do you've 2fa enabled ?
import instabot Bot = instabot.Bot() Bot.login(username="",password="") users = set(users) Bot.send_message("message",users) Bot.logout()
I am simply trying to send message to people via the bot. Sorry but I don't know "2fa" couldyou please give me more information about that
Did you enable sms code verification when login in via your phone ?
Did you enable sms code verification when login in via your phone ?
yes i did
You should add: ask_for_code=True
Similar: https://github.com/instagrambot/instabot/issues/1192
You should add:
ask_for_code=True
Similar: #1192
To Bot.login() ? I tried and got TypeError: login() got an unexpected keyword argument 'ask_for_code'
You should add:
ask_for_code=True
Similar: #1192
Just figured out that I had to upgrade version. Sorry for wasting your time. Have a good one sir
That is the problem I have. When I try to login by myself on either my phone or my computer, there is no problem but when it comes to run the script on vs code, it gives me the error. What should I do??