From fb55e78e980dfabef4bed606c2385f6897dd2d84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Armando=20L=C3=BCscher?= Date: Sun, 4 Oct 2020 01:57:43 +0200 Subject: [PATCH] Version 0.64.0 --- CHANGELOG.md | 12 ++++++++++-- doc/01-utils.md | 10 +++++----- src/Telegram.php | 2 +- 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ab39d4549..dc13d127e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,16 +4,23 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p Exclamation symbols (:exclamation:) note something of importance e.g. breaking changes. Click them to learn more. ## [Unreleased] -- [:ledger: View file changes][Unreleased] ### Notes +- [:ledger: View file changes][Unreleased] ### Added ### Changed ### Deprecated ### Removed ### Fixed -- Correct SQL migration script for older versions of MySQL. ### Security +## [0.64.0] - 2020-10-04 +### Notes +- [:ledger: View file changes][0.64.0] +### Added +- Support for Guzzle 7. (@KristobalJunta) (#1133) +### Fixed +- Correct SQL migration script for older versions of MySQL. (#1135) + ## [0.63.1] - 2020-06-24 ### Notes - [:ledger: View file changes][0.63.1] @@ -489,6 +496,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c [Tidelift]: https://tidelift.com/subscription/pkg/packagist-longman-telegram-bot?utm_source=packagist-longman-telegram-bot&utm_medium=referral&utm_campaign=changelog [Unreleased]: https://github.com/php-telegram-bot/core/compare/master...develop +[0.64.0]: https://github.com/php-telegram-bot/core/compare/0.63.1...0.64.0 [0.63.1]: https://github.com/php-telegram-bot/core/compare/0.63.0...0.63.1 [0.63.0]: https://github.com/php-telegram-bot/core/compare/0.62.0...0.63.0 [0.62.0]: https://github.com/php-telegram-bot/core/compare/0.61.1...0.62.0 diff --git a/doc/01-utils.md b/doc/01-utils.md index 145338272..e741d3cfc 100644 --- a/doc/01-utils.md +++ b/doc/01-utils.md @@ -23,12 +23,12 @@ use Monolog\Logger; TelegramLog::initialize( // Main logger that handles all 'debug' and 'error' logs. new Logger('telegram_bot', [ - (new StreamHandler($path_to_debug_log_file, Logger::DEBUG))->setFormatter(new LineFormatter(null, null, true)), - (new StreamHandler($path_to_error_log_file, Logger::ERROR))->setFormatter(new LineFormatter(null, null, true)), + (new StreamHandler('/path/to/debug_log_file', Logger::DEBUG))->setFormatter(new LineFormatter(null, null, true)), + (new StreamHandler('/path/to/error_log_file', Logger::ERROR))->setFormatter(new LineFormatter(null, null, true)), ]), // Updates logger for raw updates. new Logger('telegram_bot_updates', [ - (new StreamHandler($path_to_updates_log_file, Logger::INFO))->setFormatter(new LineFormatter('%message%' . PHP_EOL)), + (new StreamHandler('/path/to/updates_log_file', Logger::INFO))->setFormatter(new LineFormatter('%message%' . PHP_EOL)), ]) ); ``` @@ -41,7 +41,7 @@ If you store the raw data you can import all updates on the newest table schema Remember to always backup first!! ### Always log request and response data -If you's like to always log the request and response data to the debug log, also for successful requests, you can set the appropriate variable: +If you'd like to always log the request and response data to the debug log, even for successful requests, you can set the appropriate variable: ```php \Longman\TelegramBot\TelegramLog::$always_log_request_and_response = true; ``` @@ -49,7 +49,7 @@ If you's like to always log the request and response data to the debug log, also ### Hiding API token from the log By default, the API token is removed from the log, to prevent any mistaken leakage when posting logs online. This behaviour can be changed by setting the appropriate variable: -``php +```php \Longman\TelegramBot\TelegramLog::$remove_bot_token = false; ``` diff --git a/src/Telegram.php b/src/Telegram.php index 803e9459d..03a32dfa2 100644 --- a/src/Telegram.php +++ b/src/Telegram.php @@ -34,7 +34,7 @@ class Telegram * * @var string */ - protected $version = '0.63.1'; + protected $version = '0.64.0'; /** * Telegram API key