ohld / igbot

🐙 Free scripts, bots and Python API wrapper. Get free followers with our auto like, auto follow and other scripts!
https://hikerapi.com/p/N2P6iqiM
Apache License 2.0
4.71k stars 1.47k forks source link

DM to new followers #492

Closed iransales closed 6 years ago

iransales commented 6 years ago

Please can you implement send DM to new followers. PLEASE

sudoguy commented 6 years ago

I did write some script in examples. Welcome https://github.com/instagrambot/instabot/blob/master/examples/welcome_message.py

choskii commented 6 years ago

I saw your script for direct message to new followers. I'm a beginner, and have Instabot already configured running. Where should I add or run your script for automatic dm? Thank you so much!

constantinosbou commented 6 years ago

Yes, please more info!

RobertoBrandini commented 6 years ago

i'm receiving this error

Traceback (most recent call last): File "welcome_message.py", line 15, in from instabot import Bot, utils ImportError: cannot import name 'utils' D:\Fabrica_Python\instagrambot\examples>

RobertoBrandini commented 6 years ago

solved using pip install huepy==0.9.8.1

LucSpan commented 6 years ago

I get the following error when the script intends to send a DM to a new follower:

2018-05-08 09:17:16,838 - ERROR - Request returns 400 error! 2018-05-08 09:17:16,839 - INFO - Instagram's error message: feedback_required 2018-05-08 09:17:16,839 - INFO - Message to ['xxx'] wasn't sent

What is this feedback_required?


I found this article explaining it. Has nothing to do with the code, it seems.

eyazilikaya commented 6 years ago

Thanks @sudoguy for your script. I wonder if we can print username in the message ? for example, if I'm sending a message to sudoguy, message should be something like this "thank you for follow @username " is that possible somehow?

basnijholt commented 6 years ago

@eyazilikaya just make the message:

'Thank you for following me @{}'.format(bot.get_user_info(follower)['username'])

so change the last lines into:

for follower in tqdm(new_followers):
    MESSAGE = 'Thank you for following me @{}'.format(bot.get_user_info(follower)['username'])
    if bot.send_message(MESSAGE, follower):
        notified_users.append(follower)
iransales commented 6 years ago

How do I send more than one message? For example: 1 : Hi @marcel 2 : We have the best prices 3 *: contact us by email

iransales commented 6 years ago

Can someone answer my question above?

iransales commented 6 years ago

@basnijholt ?

basnijholt commented 6 years ago

@iransales could you write what you tried yourself in order to do this?

StudioBloomDMVR commented 6 years ago

also receiving

  File "/Users/knux/Desktop/instabot-master/examples/welcome_message.py", line 15, in <module>
    from instabot import Bot, utils
ImportError: cannot import name 'utils' 

attempted install huepy==0.9.8.1 as @RobertoBrandini states but that returns


  Could not fetch URL https://pypi.python.org/simple/huepy/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) - skipping
  Could not find a version that satisfies the requirement huepy (from versions: )
No matching distribution found for huepy```
stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

williamwil777 commented 6 years ago

is there anyway I can modify the script to DM users that I follow ? @sudoguy

akechidi02 commented 5 years ago

need some help to dm my followers any one ????