Skip to content

Commit

Permalink
Merge branch 'master' into rocket_chat_token
Browse files Browse the repository at this point in the history
  • Loading branch information
pmav99 authored Nov 10, 2021
2 parents ef35ff0 + e40e1eb commit 545bfc1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Extras
* `Telegram <https://telegram.org/>`_ support requires installing as ``pip install ntfy[telegram]``
* `Instapush <https://instapush.im/>`_ support requires installing as ``pip install ntfy[instapush]``
* `Slack <https://slack.com/>`_ support requires installing as ``pip install ntfy[slack]``
* `Slack Incoming Webhooks<https://slack.com/>`_ - simpler slack implementation that doesn't have additional dependencies
* `Slack Incoming webhook <https://slack.com/>`_ - simpler slack implementation that doesn't have additional dependencies
* `Rocket.Chat <https://Rocket.Chat>`_ support requires installing as ``pip install ntfy[rocketchat]``

To install multiple extras, separate with commas: e.g., ``pip install ntfy[pid,emoji]``.
Expand Down
Binary file modified docs/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion ntfy/backends/slack_webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ def notify(title, message, url, user, **kwargs):
requests.post(
url,
json={
"username": "ntfy",
"icon_url": "https://ntfy.readthedocs.io/en/latest/_static/logo.png",
"text": "{0}\n{1}".format(title, message),
"user": user,
"channel": user,
"blocks": [
{
"type": "section",
Expand Down

0 comments on commit 545bfc1

Please sign in to comment.