File tree Expand file tree Collapse file tree 4 files changed +23
-7
lines changed Expand file tree Collapse file tree 4 files changed +23
-7
lines changed Original file line number Diff line number Diff line change 2121 fast_finish : true
2222
2323notifications :
24- on_success : never
25- on_failure : always
24+ email :
25+ on_success : never
26+ on_failure : always
2627 webhooks :
2728 on_success : always
2829 urls :
Original file line number Diff line number Diff line change @@ -7,16 +7,25 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
77### Notes
88- [ :ledger : View file changes] [ Unreleased ]
99### Added
10- - Allow webhook to contain custom query parameters.
1110### Changed
1211### Deprecated
1312### Removed
1413### Fixed
1514### Security
1615
16+ ## [ 1.7.0] - 2021-06-14
17+ ### Notes
18+ - [ :ledger : View file changes] [ 1.7.0 ]
19+ ### Changed
20+ - Bumped core to version 0.73.* .
21+ ### Fixed
22+ - ` chat_id ` output for ` getUpdates ` method. (#65 )
23+
1724## [ 1.6.0] - 2020-12-26
1825### Notes
1926- [ :ledger : View file changes] [ 1.6.0 ]
27+ ### Added
28+ - Allow webhook to contain custom query parameters. (#59 )
2029### Changed
2130- Upgraded dependencies and bumped core to version 0.70.* .
2231- Upgrade code to PHP 7.3.
@@ -204,6 +213,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
204213[ 0.44.0-bc-parameter-structure ] : https://github.com/php-telegram-bot/telegram-bot-manager/wiki/Breaking-backwards-compatibility#parameter-structure-changed " Parameter structure changed "
205214
206215[ Unreleased ] : https://github.com/php-telegram-bot/telegram-bot-manager/compare/master...develop
216+ [ 1.7.0 ] : https://github.com/php-telegram-bot/telegram-bot-manager/compare/1.6.0...1.7.0
207217[ 1.6.0 ] : https://github.com/php-telegram-bot/telegram-bot-manager/compare/1.5.0...1.6.0
208218[ 1.5.0 ] : https://github.com/php-telegram-bot/telegram-bot-manager/compare/1.4.0...1.5.0
209219[ 1.4.0 ] : https://github.com/php-telegram-bot/telegram-bot-manager/compare/1.3.0...1.4.0
Original file line number Diff line number Diff line change 1919 ],
2020 "require" : {
2121 "php" : " ^7.3|^8.0" ,
22- "longman/telegram-bot" : " ^0.70 " ,
22+ "longman/telegram-bot" : " ^0.73 " ,
2323 "longman/ip-tools" : " ^1.2" ,
2424 "psr/log" : " ^1.1"
2525 },
Original file line number Diff line number Diff line change 2828
2929class BotManager
3030{
31+ public const VERSION = '1.7.0 ' ;
32+
3133 /**
3234 * @link https://core.telegram.org/bots/webhooks#the-short-version
3335 * @var array Telegram webhook servers IP ranges
@@ -503,12 +505,15 @@ protected function defaultGetUpdatesCallback($get_updates_response): string
503505 } elseif ($ update_content instanceof CallbackQuery) {
504506 /** @var CallbackQuery $update_content */
505507 $ message = $ update_content ->getMessage ();
506- $ chat_id = ($ message && $ message ->getChat ()) ? $ message ->getChat ()->getId () : null ;
507- $ text .= "; {$ update_content ->getData ()}" ;
508+ if ($ message && $ message ->getChat ()) {
509+ $ chat_id = $ message ->getChat ()->getId ();
510+ }
511+
512+ $ text .= "; {$ update_content ->getData ()}" ;
508513 }
509514
510515 $ output .= sprintf (
511- '%d : <%s> ' . PHP_EOL ,
516+ '%s : <%s> ' . PHP_EOL ,
512517 $ chat_id ,
513518 preg_replace ('/\s+/ ' , ' ' , trim ($ text ))
514519 );
You can’t perform that action at this time.
0 commit comments