Comments (7)
Channel Override
Incoming webhooks have a default channel, but it can be overridden in your JSON payload. A public channel can be specified with "channel": "#other-channel", and a Direct Message with "channel": "@username".
When creating a webhook
from laravel-slack.
@gianemi2 it is possible, I ended up forking this package so that I can point a channel to a webhook url in the config file. My only use case was to send to different channels though, I haven't tested sending to users and other stuff so use at your own risk... https://github.com/tigran-cl/laravel-slack
from laravel-slack.
Seems Slack removed this option.
https://api.slack.com/custom-integrations/incoming-webhooks#migrating_from_legacy_incoming_webhooks
from laravel-slack.
@freynolds that is a legacy option and does not work with new integrations.
https://api.slack.com/custom-integrations/incoming-webhooks
from laravel-slack.
Is not possible to add multiple slack incoming webhooks?
from laravel-slack.
Nice work. @tigran-cl Can you make a pull request?
from laravel-slack.
@gianemi2 it is possible, I ended up forking this package so that I can point a channel to a webhook url in the config file. My only use case was to send to different channels though, I haven't tested sending to users and other stuff so use at your own risk... https://github.com/tigran-cl/laravel-slack
@tigran-cl Given that Slack only allows you to send to one channel (or user) per webhook, this package needs the ability to configure multiple webhook URLs, so that I can send a slack message to #my-channel or @my-user using one package.
Can you please create a pull request?
from laravel-slack.
Related Issues (15)
- oAuth Bot Token
- Broken on Laravel 5.7? HOT 2
- Queue slack notification HOT 1
- As of L5.7 class SlackMessage is no longer available HOT 3
- Laravel 5.8 support HOT 2
- Ability to configure multiple webhook URLs HOT 2
- Laravel 6.x - Support HOT 7
- Send message from commands laravel HOT 1
- Test on more PHP versions
- Laravel 10 Support HOT 2
- Sending multiple messages to the same recipient when sending to multiple recipients
- Cannot seem to get "application_image' to work HOT 2
- Lumen? HOT 1
- Sending to multiple Slack instances HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-slack.