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 @@ -8,6 +8,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
88### Changed
99### Deprecated
1010### Removed
11+ - Botan.io has been removed (see php-telegram-bot/core #924 )
1112### Fixed
1213### Security
1314
Original file line number Diff line number Diff line change @@ -276,17 +276,6 @@ $bot = new BotManager([
276276 ],
277277 ],
278278
279- // (array) All options that have to do with botan.
280- 'botan' => [
281- // (string) The Botan.io token to be used for analytics.
282- 'token' => 'botan_12345',
283- // (array) Any extra options to pass to botan.
284- 'options' => [
285- // (float) Custom timeout for requests.
286- 'timeout' => 3,
287- ],
288- ],
289-
290279 // (array) All options that have to do with cron.
291280 'cron' => [
292281 // (array) List of groups that contain the commands to execute.
Original file line number Diff line number Diff line change @@ -307,12 +307,6 @@ protected function setBotExtrasTelegram(): self
307307 $ this ->telegram ->setCommandConfig ($ command , $ config );
308308 }
309309
310- // Botan with options.
311- if ($ botan_token = $ this ->params ->getBotParam ('botan.token ' )) {
312- $ botan_options = $ this ->params ->getBotParam ('botan.options ' , []);
313- $ this ->telegram ->enableBotan ($ botan_token , $ botan_options );
314- }
315-
316310 return $ this ;
317311 }
318312
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