I’m updating GroupMe-Multi-Add (originally written by Y.H.) to accommodate for changes within GroupMe’s public facing UI, as well as make it more intuitive to use for less tech-oriented people.
- GroupMe’s UI now makes it impossible to find the group_id of a chat without using the API. Consequently, I auto-grab the correct GroupMe group_id using the name of the group and calls to the API instead.
- Got rid of global variables and implemented a terminal prompting system, which lessens the likelihood of human error.
- The script is now written in Python 3.
GroupMe-Multi-Add-v2.0 bulk adds a list of members by phone number from a .csv file to a GroupMe group.
- Install Homebrew if you haven’t already. Run the following command in the terminal:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Install wget:
brew install wget
- Download the Miniconda installer. Miniconda is a lightweight python environment, which automatically includes python 3:
- Run the Miniconda installer:
- Delete the Miniconda installer:
- Edit PATH variable and store it:
echo export PATH='~/miniconda3/bin:$PATH' >> ~/.profile
- Activate the changes:
- Install python environment:
conda install anaconda
- Update python packages:
conda update --all
- In your terminal, run
git clone https://github.com/Pyrinox/GroupMe-Multi-Add-v2.0.gitin the directory you would like to keep the script in.
- Create a csv file that contains a single column of phone numbers (as shown below). Save it in the same directory that the python file is in.
- Get an access token by creating a GroupMe account (skip if you already have one). Next, sign into the developer’s portal. Once you’re logged in, you should be able to see the “Access Token” button located at the top right of the navigation menu (to the left of your account name). Copy the token.
- Finally, in your terminal, cd to the directory containing your .csv file and python script. Then type
python groupme_multi_add.pyand press Enter. Follow all the prompts.
- Congratulations, you’ve just added your entire roster to your GroupMe group.