Skip to content

Commit e522050

Browse files
authored
Version 0.44.1
2 parents 0bdd7a7 + fb77742 commit e522050

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Changelog
22
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
33

4+
Exclamation symbols (:exclamation:) note something of importance e.g. breaking changes. Click them to learn more.
5+
46
## [Unreleased]
57
### Added
68
### Changed
@@ -9,6 +11,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
911
### Fixed
1012
### Security
1113

14+
## [0.44.1] - 2017-04-25
15+
### Fixed
16+
- Erroneous exception when using webhook without a database connection.
17+
1218
## [0.44.0] - 2017-04-25
1319
### Added
1420
- Proper standalone `scrutinizer.yml` config.
@@ -18,7 +24,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
1824
### Removed
1925
- All examples have been moved to a [dedicated repository](https://github.com/php-telegram-bot/example-bot).
2026
### Fixed
21-
- Format of Update content type using `$update->getUpdateContent()`.
27+
- [:exclamation:](https://github.com/php-telegram-bot/core/wiki/Breaking-backwards-compatibility#0440) Format of Update content type using `$update->getUpdateContent()`.
2228

2329
## [0.43.0] - 2017-04-17
2430
### Added

src/DB.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,10 +479,14 @@ public static function insertChat(Chat $chat, $date, $migrate_to_chat_id = null)
479479
*/
480480
public static function insertRequest(Update $update)
481481
{
482+
if (!self::isDbConnected()) {
483+
return false;
484+
}
485+
482486
$update_id = $update->getUpdateId();
483487
$update_type = $update->getUpdateType();
484488

485-
if (count(self::selectTelegramUpdate(1, $update->getUpdateId())) === 1) {
489+
if (count(self::selectTelegramUpdate(1, $update_id)) === 1) {
486490
throw new TelegramException('Duplicate update received!');
487491
}
488492

src/Telegram.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class Telegram
3030
*
3131
* @var string
3232
*/
33-
protected $version = '0.43.0';
33+
protected $version = '0.44.1';
3434

3535
/**
3636
* Telegram API key

0 commit comments

Comments
 (0)