Skip to content

Commit 545bfc1

Browse files
authored
Merge branch 'master' into rocket_chat_token
2 parents ef35ff0 + e40e1eb commit 545bfc1

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Extras
8686
* `Telegram <https://telegram.org/>`_ support requires installing as ``pip install ntfy[telegram]``
8787
* `Instapush <https://instapush.im/>`_ support requires installing as ``pip install ntfy[instapush]``
8888
* `Slack <https://slack.com/>`_ support requires installing as ``pip install ntfy[slack]``
89-
* `Slack Incoming Webhooks<https://slack.com/>`_ - simpler slack implementation that doesn't have additional dependencies
89+
* `Slack Incoming webhook <https://slack.com/>`_ - simpler slack implementation that doesn't have additional dependencies
9090
* `Rocket.Chat <https://Rocket.Chat>`_ support requires installing as ``pip install ntfy[rocketchat]``
9191

9292
To install multiple extras, separate with commas: e.g., ``pip install ntfy[pid,emoji]``.

docs/logo.png

13.2 KB
Loading

ntfy/backends/slack_webhook.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ def notify(title, message, url, user, **kwargs):
66
requests.post(
77
url,
88
json={
9+
"username": "ntfy",
10+
"icon_url": "https://ntfy.readthedocs.io/en/latest/_static/logo.png",
911
"text": "{0}\n{1}".format(title, message),
10-
"user": user,
12+
"channel": user,
1113
"blocks": [
1214
{
1315
"type": "section",

0 commit comments

Comments
 (0)