Skip to content

Releases: php-telegram-bot/core

Version 0.62.0

08 Apr 15:31
0.62.0
78024d7
Compare
Choose a tag to compare

Notes

Added

  • Bot API 4.5 (Unique file IDs, MarkdownV2). (#1046)
  • Chain the exception thrown when getting commands from path. (#1030)
  • Support language_code in DB::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 flexible ClientInterface. (#1068)

Removed

  • Unnecessary instanceof checks for entities. (#1068)
  • Unused Request::$input variable. (#1068)

Fixed

  • Execution of /start command without any custom implementation.
  • Return animation type for GIF Message (which returns both animation and document). (#1044)
  • Change lowercase function to mb_strtolower from strtolower because of latin-extented characters. (#1051)
  • Extend Request::mediaInputHelper() to include thumb parameter. (#1059)
  • Various docblock annotations. (#1068)

0.61.1

23 Nov 21:53
85d52f6
Compare
Choose a tag to compare

Notes

Added

  • Tests for schema update scripts, to ensure that updates work as expected. (#1025)

Fixed

  • Parameter inline_query_id in InlineQuery::answerInlineQuery. (#1021)
  • Corrected DB schema update 0.60.0-0.61.0. (#1025)

0.61.0

02 Nov 00:42
8588b97
Compare
Choose a tag to compare

Notes

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

  • Boolean value for Polls gets saved correctly in MySQL DB. (#996)
  • Correctly use Request::answerInlineQuery in InlineQuery::answer. (#1001)
  • PSR-12 incompatibilities in the codebase. (#1008)
  • Improved and corrected /cleanup command. (#1015)

0.60.0

16 Aug 15:14
4664688
Compare
Choose a tag to compare

Notes

Added

  • Bot API 4.4 (Animated stickers, ChatPermissions). (#990)

Changed

  • Allow passing native entity objects to requests. (#991)

Fixed

  • Non-existing commands now correctly execute GenericCommand again. (#993)

0.59.1

18 Jul 15:30
f55fd1c
Compare
Choose a tag to compare

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

  • Don't output deprecation notices if no logging is enabled. (#983)
  • Respect custom HTTP Client initialisation, no matter when it is set. (#986)

0.59.0

07 Jul 21:31
80f626f
Compare
Choose a tag to compare

Notes

Changed

  • Touched up readme including header and badges. (#981)
  • Updated changelog to be more useful for external integrations like Tidelift and GitHub releases. (#981)

Removed

  • Abstract methods from InputMedia interface, as method annotations didn't work for propagation. (#978)

0.58.0

26 Jun 17:01
8d1ed51
Compare
Choose a tag to compare

Notes

Added

  • New funding and support details. (#971)
  • Custom issue templates. (#972)
  • Bot API 4.3 (Seamless Telegram Login, LoginUrl) (#957)
  • reply_markup field to Message 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-3 LoggerInterface 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 a UserCommand (not SystemCommand 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

  • Security disclosure managed by Tidelift. (#971)
  • Don't allow a user to call system commands directly. (#970)

0.57.0

01 Jun 09:52
f2fe6e3
Compare
Choose a tag to compare

Notes

Added

  • New logo! 🎉 (#954)
  • Bot API 4.2 (Polls). (#948)
  • getIsMember() method to ChatMember entity. (#948)
  • getForwardSenderName() method to Message entity. (#948)
  • forward_sender_name (and forgotten forward_signature) DB fields. (#948)
  • Added missing API fields to Entities and DB. (#885)
  • Created database tables for shipping_query and pre_checkout_query. (#885)

Fixed

  • Missing DB table name specifier in /cleanup command. (#947)

0.56.0

15 Apr 00:31
695e63a
Compare
Choose a tag to compare

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 using Request::sendMediaGroup() and Request::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)

Fixed

  • Constraint errors in /cleanup command. (#930)
  • Return correct objects for requests. (#934)
  • PHPCS: static before visibility declaration. (#945)

0.55.1

06 Jan 20:10
2cfb8a7
Compare
Choose a tag to compare

Notes

Added

  • Add missing Request::editMessageMedia() and CallbackQuery::getChatInstance() methods. (#916)

Fixed

  • Return correct message type. (#913)