File tree Expand file tree Collapse file tree 5 files changed +1
-24
lines changed Expand file tree Collapse file tree 5 files changed +1
-24
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
1111- Adopt issue templates and git/GitHub related meta from upstream core.
1212### Deprecated
1313### Removed
14+ - Botan.io has been removed (see php-telegram-bot/core #924 )
1415### Fixed
1516### Security
1617- Security disclosure managed by [ Tidelift] .
Original file line number Diff line number Diff line change @@ -280,17 +280,6 @@ $bot = new BotManager([
280280 ],
281281 ],
282282
283- // (array) All options that have to do with botan.
284- 'botan' => [
285- // (string) The Botan.io token to be used for analytics.
286- 'token' => 'botan_12345',
287- // (array) Any extra options to pass to botan.
288- 'options' => [
289- // (float) Custom timeout for requests.
290- 'timeout' => 3,
291- ],
292- ],
293-
294283 // (array) All options that have to do with cron.
295284 'cron' => [
296285 // (array) List of groups that contain the commands to execute.
Original file line number Diff line number Diff line change @@ -309,12 +309,6 @@ protected function setBotExtrasTelegram(): self
309309 $ this ->telegram ->setCommandConfig ($ command , $ config );
310310 }
311311
312- // Botan with options.
313- if ($ botan_token = $ this ->params ->getBotParam ('botan.token ' )) {
314- $ botan_options = $ this ->params ->getBotParam ('botan.options ' , []);
315- $ this ->telegram ->enableBotan ($ botan_token , $ botan_options );
316- }
317-
318312 return $ this ;
319313 }
320314
Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ class Params
4747 'mysql ' ,
4848 'paths ' ,
4949 'commands ' ,
50- 'botan ' ,
5150 'cron ' ,
5251 'custom_input ' ,
5352 ];
@@ -89,9 +88,6 @@ class Params
8988 * commands (array)
9089 * - paths (array) Custom commands paths to set.
9190 * - configs (array) List of custom command configs.
92- * botan (array)
93- * - token (string) Botan token to enable botan.io support.
94- * - options (array) Botan options.
9591 * custom_input (string) Custom raw JSON string to use as input.
9692 * cron (array)
9793 * - groups (array) Groups of cron commands to run.
Original file line number Diff line number Diff line change @@ -60,9 +60,6 @@ class ParamsTest extends \PHPUnit\Framework\TestCase
6060 'sendtochannel ' => ['your_channel ' => '@my_channel ' ],
6161 ],
6262 ],
63- 'botan ' => [
64- 'token ' => 'botan_12345 ' ,
65- ],
6663 'cron ' => [
6764 'groups ' => [
6865 'default ' => [
You can’t perform that action at this time.
0 commit comments