diff --git a/.idea/runConfigurations/Build.xml b/.idea/runConfigurations/Build.xml new file mode 100644 index 0000000..a601571 --- /dev/null +++ b/.idea/runConfigurations/Build.xml @@ -0,0 +1,10 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Clean.xml b/.idea/runConfigurations/Clean.xml new file mode 100644 index 0000000..5ba1469 --- /dev/null +++ b/.idea/runConfigurations/Clean.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Install.xml b/.idea/runConfigurations/Install.xml new file mode 100644 index 0000000..1fb616b --- /dev/null +++ b/.idea/runConfigurations/Install.xml @@ -0,0 +1,10 @@ + + + + + + + + + \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ec31ef..1572558 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [6.5.4] - Unreleased + +### Changed + * Removed unused `__destruct()` method from `\TgBotLib\Bot` + ## [6.5.3] - Unreleased ### Fixed diff --git a/Makefile b/Makefile index 6dbab58..e3f87d5 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ -release: - ncc build --config="release" +build: + ncc build --config="release" --log-level debug install: - ncc package install --package="build/release/net.nosial.tgbotlib.ncc" --skip-dependencies --reinstall -y + sudo ncc package install --package="build/release/net.nosial.tgbotlib.ncc" --skip-dependencies --reinstall -y --log-level debug -uninstall: - ncc package uninstall -y --package="net.nosial.tgbotlib" \ No newline at end of file +clean: + rm -rf build \ No newline at end of file diff --git a/README.md b/README.md index 077869b..3c8aacc 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ Telegram Bot API version. The library can be installed using ncc: ```bash -ncc install -p "nosial/libs.tgbot=latest@n64" +ncc package install -p "nosial/libs.tgbot=latest@n64" ``` or by adding the following to your project.json file under the `build.dependencies` section: diff --git a/project.json b/project.json index 44d851f..8689467 100644 --- a/project.json +++ b/project.json @@ -12,7 +12,7 @@ "package": "net.nosial.tgbotlib", "description": "TgBotLib is a library for interacting with the Telegram Bot API", "company": "Nosial", - "version": "6.5.2", + "version": "6.5.4", "uuid": "b409e036-ab04-11ed-b32e-9d3f57a644ae" }, "build": { @@ -39,4 +39,4 @@ } ] } -} \ No newline at end of file +} diff --git a/src/TgBotLib/Bot.php b/src/TgBotLib/Bot.php index ce3f992..44b6141 100644 --- a/src/TgBotLib/Bot.php +++ b/src/TgBotLib/Bot.php @@ -2333,19 +2333,4 @@ ]); return true; } - - /** - * Public Destructor - */ - public function __destruct() - { - try - { - $this->close(); - } - catch(Exception $e) - { - unset($e); - } - } } \ No newline at end of file