Releases: php-telegram-bot/core
Releases · php-telegram-bot/core
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)
0.56.0
Notes
- 📒 View file changes ∙ [📃 DB migration script][0.56.0-sql-migration]
- ❕ This is a big update, so please review the changelog carefully!
Added
- Helper for sending
InputMedia
objects usingRequest::sendMediaGroup()
andRequest::editMediaMessage()
methods. - Allow passing absolute file path for InputFile fields, instead of
Request::encodeFile($path)
. (#934)
Changed
- All Message field types dynamically search for an existing Command class that can handle them. (#940)
- Upgrade dependencies. (#945)
Deprecated
- Botan.io service has been discontinued. (#925)
- Most built-in System Commands will be handled by GenericmessageCommand by default in a future release and will require a custom implementation. (#940)