|
181 | 181 | // ], |
182 | 182 | // 'message' => [ |
183 | 183 | // 'class' => Guanguans\Notify\Foo\Messages\Message::class, |
184 | | - // 'title' => AbstractChannel::CONTENT_TEMPLATE, |
185 | | - // 'content' => AbstractChannel::CONTENT_TEMPLATE, |
| 184 | + // 'options' => [ |
| 185 | + // 'title' => AbstractChannel::CONTENT_TEMPLATE, |
| 186 | + // 'content' => AbstractChannel::CONTENT_TEMPLATE, |
| 187 | + // ], |
186 | 188 | // ], |
187 | 189 | // 'pipes' => [ |
188 | 190 | // LimitLengthPipe::with(1024), |
|
200 | 202 | ], |
201 | 203 | 'message' => [ |
202 | 204 | 'class' => Guanguans\Notify\Bark\Messages\Message::class, |
203 | | - 'title' => AbstractChannel::TITLE_TEMPLATE, |
204 | | - 'body' => AbstractChannel::CONTENT_TEMPLATE, |
205 | 205 | 'options' => [ |
206 | 206 | 'title' => AbstractChannel::TITLE_TEMPLATE, |
207 | 207 | 'body' => AbstractChannel::CONTENT_TEMPLATE, |
|
223 | 223 | ], |
224 | 224 | 'message' => [ |
225 | 225 | 'class' => Guanguans\Notify\Chanify\Messages\TextMessage::class, |
226 | | - 'title' => AbstractChannel::TITLE_TEMPLATE, |
227 | | - 'text' => AbstractChannel::CONTENT_TEMPLATE, |
| 226 | + 'options' => [ |
| 227 | + 'title' => AbstractChannel::TITLE_TEMPLATE, |
| 228 | + 'text' => AbstractChannel::CONTENT_TEMPLATE, |
| 229 | + ], |
228 | 230 | ], |
229 | 231 | 'pipes' => [ |
230 | 232 | LimitLengthPipe::with(1024), |
|
243 | 245 | ], |
244 | 246 | 'message' => [ |
245 | 247 | 'class' => Guanguans\Notify\DingTalk\Messages\MarkdownMessage::class, |
246 | | - 'title' => AbstractChannel::TITLE_TEMPLATE, |
247 | | - 'text' => AbstractChannel::CONTENT_TEMPLATE, |
| 248 | + 'options' => [ |
| 249 | + 'title' => AbstractChannel::TITLE_TEMPLATE, |
| 250 | + 'text' => AbstractChannel::CONTENT_TEMPLATE, |
| 251 | + ], |
248 | 252 | ], |
249 | 253 | 'pipes' => [ |
250 | 254 | AddKeywordChorePipe::with(env('EXCEPTION_NOTIFY_DINGTALK_KEYWORD')), |
|
264 | 268 | ], |
265 | 269 | 'message' => [ |
266 | 270 | 'class' => Guanguans\Notify\Discord\Messages\Message::class, |
267 | | - 'content' => AbstractChannel::CONTENT_TEMPLATE, |
| 271 | + 'options' => [ |
| 272 | + 'content' => AbstractChannel::CONTENT_TEMPLATE, |
| 273 | + ], |
268 | 274 | ], |
269 | 275 | 'pipes' => [ |
270 | 276 | LimitLengthPipe::with(2000), |
|
283 | 289 | ], |
284 | 290 | 'message' => [ |
285 | 291 | 'class' => Guanguans\Notify\Lark\Messages\TextMessage::class, |
286 | | - 'text' => AbstractChannel::CONTENT_TEMPLATE, |
| 292 | + 'options' => [ |
| 293 | + 'text' => AbstractChannel::CONTENT_TEMPLATE, |
| 294 | + ], |
287 | 295 | ], |
288 | 296 | 'pipes' => [ |
289 | 297 | AddKeywordChorePipe::with(env('EXCEPTION_NOTIFY_LARK_KEYWORD')), |
|
303 | 311 | ], |
304 | 312 | 'message' => [ |
305 | 313 | 'class' => Guanguans\Notify\Ntfy\Messages\Message::class, |
306 | | - 'topic' => env('EXCEPTION_NOTIFY_NTFY_TOPIC', 'laravel-exception-notify'), |
307 | | - 'title' => AbstractChannel::TITLE_TEMPLATE, |
308 | | - 'message' => AbstractChannel::CONTENT_TEMPLATE, |
| 314 | + 'options' => [ |
| 315 | + 'topic' => env('EXCEPTION_NOTIFY_NTFY_TOPIC', 'laravel-exception-notify'), |
| 316 | + 'title' => AbstractChannel::TITLE_TEMPLATE, |
| 317 | + 'message' => AbstractChannel::CONTENT_TEMPLATE, |
| 318 | + ], |
309 | 319 | ], |
310 | 320 | 'pipes' => [ |
311 | 321 | LimitLengthPipe::with(4096), |
|
323 | 333 | ], |
324 | 334 | 'message' => [ |
325 | 335 | 'class' => Guanguans\Notify\PushDeer\Messages\Message::class, |
326 | | - 'type' => 'markdown', |
327 | | - 'text' => AbstractChannel::TITLE_TEMPLATE, |
328 | | - 'desp' => AbstractChannel::CONTENT_TEMPLATE, |
| 336 | + 'options' => [ |
| 337 | + 'type' => 'markdown', |
| 338 | + 'text' => AbstractChannel::TITLE_TEMPLATE, |
| 339 | + 'desp' => AbstractChannel::CONTENT_TEMPLATE, |
| 340 | + ], |
329 | 341 | ], |
330 | 342 | 'pipes' => [ |
331 | 343 | SprintfMarkdownPipe::class, |
|
344 | 356 | ], |
345 | 357 | 'message' => [ |
346 | 358 | 'class' => Guanguans\Notify\Slack\Messages\Message::class, |
347 | | - 'mrkdwn' => true, |
348 | | - 'text' => AbstractChannel::CONTENT_TEMPLATE, |
| 359 | + 'options' => [ |
| 360 | + 'mrkdwn' => true, |
| 361 | + 'text' => AbstractChannel::CONTENT_TEMPLATE, |
| 362 | + ], |
349 | 363 | ], |
350 | 364 | 'pipes' => [ |
351 | 365 | SprintfMarkdownPipe::class, |
|
364 | 378 | ], |
365 | 379 | 'message' => [ |
366 | 380 | 'class' => Guanguans\Notify\Telegram\Messages\TextMessage::class, |
367 | | - 'chat_id' => env('EXCEPTION_NOTIFY_TELEGRAM_CHAT_ID'), |
368 | | - 'text' => AbstractChannel::CONTENT_TEMPLATE, |
| 381 | + 'options' => [ |
| 382 | + 'chat_id' => env('EXCEPTION_NOTIFY_TELEGRAM_CHAT_ID'), |
| 383 | + 'text' => AbstractChannel::CONTENT_TEMPLATE, |
| 384 | + ], |
369 | 385 | ], |
370 | 386 | 'pipes' => [ |
371 | 387 | LimitLengthPipe::with(4096), |
|
0 commit comments