Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added InstaPy.message_users method #6475

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

hunterverhelst
Copy link

Pull Request Template

Description

`InstaPy.message_users' allows you to message a list of users individually or through a group chat.

  • InstaPy.message_users added to instapy.py
  • message_util.py was added and contains helper functions for InstaPy.message_users
  • xpath_compile.py has been appended with values necessary for message_util.py
  • actions.md has been appended with documentation for InstaPy.message_users

Fixes #6444

How Has This Been Tested?

To test this I started an InstaPy session and picked some of my friends who wouldn't mind getting a dm from me.
I added their usernames to a list and ran the following command:

session.message_users(users, "Test Message")

Once verifying success I did several variations with this, including adding users that did not exist, and setting the optional group parameter equal to True, and verified all of the results.

  • Test

Checklist:

  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have checked my code and corrected any misspellings
  • I have performed a self-review of my own code
  • My code follows the style guidelines of this project, black -t py34
  • My changes generate no new warnings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant