Commit e522050a authored by Armando Lüscher's avatar Armando Lüscher Committed by GitHub

Version 0.44.1

parents 0bdd7a73 fb77742d
# Changelog
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
Exclamation symbols (:exclamation:) note something of importance e.g. breaking changes. Click them to learn more.
## [Unreleased]
### Added
### Changed
......@@ -9,6 +11,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
### Fixed
### Security
## [0.44.1] - 2017-04-25
### Fixed
- Erroneous exception when using webhook without a database connection.
## [0.44.0] - 2017-04-25
### Added
- Proper standalone `scrutinizer.yml` config.
......@@ -18,7 +24,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
### Removed
- All examples have been moved to a [dedicated repository](https://github.com/php-telegram-bot/example-bot).
### Fixed
- Format of Update content type using `$update->getUpdateContent()`.
- [:exclamation:](https://github.com/php-telegram-bot/core/wiki/Breaking-backwards-compatibility#0440) Format of Update content type using `$update->getUpdateContent()`.
## [0.43.0] - 2017-04-17
### Added
......
......@@ -479,10 +479,14 @@ class DB
*/
public static function insertRequest(Update $update)
{
if (!self::isDbConnected()) {
return false;
}
$update_id = $update->getUpdateId();
$update_type = $update->getUpdateType();
if (count(self::selectTelegramUpdate(1, $update->getUpdateId())) === 1) {
if (count(self::selectTelegramUpdate(1, $update_id)) === 1) {
throw new TelegramException('Duplicate update received!');
}
......
......@@ -30,7 +30,7 @@ class Telegram
*
* @var string
*/
protected $version = '0.43.0';
protected $version = '0.44.1';
/**
* Telegram API key
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment