File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
7
7
### Notes
8
8
- [ :ledger : View file changes] [ Unreleased ]
9
9
### Added
10
+ - Allow webhook to contain custom query parameters.
10
11
### Changed
11
12
### Deprecated
12
13
### Removed
Original file line number Diff line number Diff line change @@ -237,9 +237,10 @@ public function validateAndSetWebhook(): self
237
237
return !empty ($ v );
238
238
}, ARRAY_FILTER_USE_BOTH );
239
239
240
+ $ webhook ['url ' ] .= parse_url ($ webhook ['url ' ], PHP_URL_QUERY ) === null ? '? ' : '& ' ;
240
241
$ this ->handleOutput (
241
242
$ this ->telegram ->setWebhook (
242
- $ webhook ['url ' ] . '? a=handle&s= ' . $ this ->params ->getBotParam ('secret ' ),
243
+ $ webhook ['url ' ] . 'a=handle&s= ' . $ this ->params ->getBotParam ('secret ' ),
243
244
$ webhook_params
244
245
)->getDescription () . PHP_EOL
245
246
);
You can’t perform that action at this time.
0 commit comments