Releases: php-telegram-bot/core
Releases · php-telegram-bot/core
Version 0.63.1
Version 0.63.0
Notes
Added
- New method
setUpdateFilter($callback)
used to filterprocessUpdate(Update $update)
calls. If$callback
returnsfalse
the update isn't processed and an empty falseyServerResponse
is returned. (@VRciF) (#1045) - Replaced 'generic' and 'genericmessage' strings with Telegram::GENERIC_COMMAND and Telegram::GENERIC_MESSAGE_COMMAND constants. (@1int) (#1074)
- Bot API 4.8 (Extra Poll and Dice features). (#1082)
- Allow custom MySQL port to be defined for tests. (#1090)
- New static method
Entity::escapeMarkdownV2
for MarkdownV2. (#1094) - Remove bot token from debug http logs, this can be disabled by setting
TelegramLog::$remove_bot_token
parameter tofalse
. (@jacklul) (#1095) TelegramLog::$always_log_request_and_response
parameter to force output of the request and response data to the debug log, also for successful requests. (#1089)- Bot API 4.9 (New
via_bot
field). (#1112)
Changed
- ❗ Made
Entity::escapeMarkdown
static, to not require anEntity
object. (#1094) - Allow custom namespacing for commands. (@Jonybang) (#689)
Fixed
Version 0.62.0
Notes
Added
- Bot API 4.5 (Unique file IDs, MarkdownV2). (#1046)
- Chain the exception thrown when getting commands from path. (#1030)
- Support
language_code
inDB::selectChats()
for filtering the chats selection. (#1058) - Bot API 4.6 (Polls 2.0). (#1066)
- Bot API 4.7 (Dice, Sticker Sets, Bot Commands). (#1067)
Changed
- Save notes an unescaped JSON, to allow easy DB reading and editing of values. (#1005)
Request::setClient()
now accepts more flexibleClientInterface
. (#1068)
Removed
Fixed
- Execution of
/start
command without any custom implementation. - Return
animation
type for GIF Message (which returns bothanimation
anddocument
). (#1044) - Change lowercase function to
mb_strtolower
fromstrtolower
because oflatin-extented
characters. (#1051) - Extend
Request::mediaInputHelper()
to includethumb
parameter. (#1059) - Various docblock annotations. (#1068)
0.61.1
0.61.0
Notes
- 📒 View file changes ∙ 📃 DB migration script
- ❗ Built-in logging (Monolog) has been removed, a custom PSR-3 logger must be used now! (see #964 for more info)
Added
- Code snippet in
GenericmessageCommand
to keep obsolete service message system commands working. (#999) - Static boolean property
SystemCommand::$execute_deprecated
(must be assigned before handling the request) to try and execute any deprecated system command. (#999) - Improved MySQL DB index for
message
table, making the cleanup much faster on bigger databases. (Thanks to @damianperez) (#1015) /cleanup
command now supports dry run which simply outputs all queries that would be run. (#1015)
Changed
- Small readme and code fixes / simplifications. (#1001)
- Upgrade PHPUnit to 8.x and PHPCS to 3.5. For tests now minimum PHP version is 7.2. (#1008)
- Updated updates log importer (requires PHP7+). (#1009)
Removed
- Service message system commands, which are now handled by
GenericmessageCommand
. (#999) - ❗ Monolog has been removed as built-in logging engine. (#1009)
- Assets have been moved to a dedicated repository. (#1012)
Fixed
0.60.0
0.59.1
Notes
- 📒 View file changes
- ❗ Deprecated logging method will be removed in the next version, update to PSR-3 now! (see #964 for more info)
Added
- Issue labels set automatically via templates.
Changed
- Logging only updates or only debug/errors is now possible. (#983)
Fixed
0.59.0
0.58.0
Notes
- 📒 View file changes ∙ 📃 DB migration script
- Logging now uses PSR-3
LoggerInterface
. Learn more about how to use it here: #964
Added
- New funding and support details. (#971)
- Custom issue templates. (#972)
- Bot API 4.3 (Seamless Telegram Login,
LoginUrl
) (#957) reply_markup
field toMessage
entity. (#957)
Changed
- Use PSR-12 for code style. (#966)
- Some general housekeeping. (#972)
- ❗ Return an empty array for Entity properties with no items, instead of
null
. (#969) TelegramLog
now adheres to PSR-3LoggerInterface
and allows custom logger implementations. (#964)
Deprecated
- Old logging that uses Monolog still works but will be removed in the near future. Use
TelegramLog::initialize($logger, $update_logger);
from now on. (#964) - ❗
StartCommand
is now aUserCommand
(notSystemCommand
any more). (#970)
Removed
- Botan.io integration completely removed. (#968)
Fixed
forward_date
is now correctly saved to the DB. (#967)- Broken
StickerSet::getStickers()
method. (#969) - Smaller code and docblock fixes. (#973)
Security
0.57.0
Notes
- 📒 View file changes ∙ 📃 DB migration script
- ❕ This is a big update and involves a bunch of MySQL database updates, so please review the changelog carefully.
Added
- New logo! 🎉 (#954)
- Bot API 4.2 (Polls). (#948)
getIsMember()
method toChatMember
entity. (#948)getForwardSenderName()
method toMessage
entity. (#948)forward_sender_name
(and forgottenforward_signature
) DB fields. (#948)- Added missing API fields to Entities and DB. (#885)
- Created database tables for
shipping_query
andpre_checkout_query
. (#885)
Fixed
- Missing DB table name specifier in
/cleanup
command. (#947)