# Create a virtual environment to work in as follows:
python3 -m venv apprise
# Change into our new directory
cd apprise
# Activate our virtual environment
source bin/activate
# Install the branch
pip install git+https://github.com/delenamalan/apprise.git@slack-files-upload-deprecation
# Test out the changes with the following command:
apprise -t "Test Title" -b "Test Message" \
--attach /path/to/image.png \
"slack://xoxb-your-slack-key/#your-channel"
Description:
Related issue (if applicable): #1126
The Slack
files.upload
method is deprecated. Instead, you now need to use thefiles.getUploadURLExternal
andfiles.completeUploadExternal
methods to upload files to Slack.Checklist
flake8
)Local test result:
Testing
Anyone can help test this source code as follows: