Skip to content

Releases: php-telegram-bot/core

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)

0.55.0

20 Dec 10:16
55698b2
Compare
Choose a tag to compare

Notes

Added

  • Bot API 4.0 and 4.1 (Telegram Passport) (#870, #871)
  • Test PHP 7.3 with Travis. (#903)

Changed

  • Move Animation entity out of Games namespace.

Fixed

  • Added missing video_note to Message types.

0.54.1

23 Oct 16:52
7701428
Compare
Choose a tag to compare

Notes

Fixed

  • sendToActiveChats now works correctly for any valid Request action. (#898)

0.54.0

21 Jul 00:54
64bcd92
Compare
Choose a tag to compare

Notes

Added

  • ChatAction class to simplify chat action selection. (#859)
  • Telegram Games platform! (#732)
  • Ability to set custom MySQL port. (#860)
  • New InvalidBotTokenException exception. (#855)

Changed

  • Rename and ensure no redefinition of constants: BASE_PATH -> TB_BASE_PATH, BASE_COMMANDS_PATH -> TB_BASE_COMMANDS_PATH. (#813)
  • Improve readability of readme code snippets. (#861)

Fixed

  • Response from getStickerSet. (#838)

0.53.0

31 Mar 22:48
ed50346
Compare
Choose a tag to compare

Notes

Added

  • Implemented new changes for Bot API 3.6 (streamable InputMediaVideo, connected website). (#799)
  • Telegram::getLastUpdateId() method, returns ID of the last update that was processed. (#767)
  • Telegram::useGetUpdatesWithoutDatabase() method, enables Telegram::handleGetUpdates() to run without a database. (#767)

Changed

  • Updated Travis to use Trusty containers (for HHVM) and add PHP 7.2 to the tests. (#739)
  • Add debug log entry instead of throwing an exception for duplicate updates. (#765)
  • Telegram::handleGetUpdates() can now work without a database connection (not enabled by default). (#767)
  • Improved /sendtochannel and /sendtoall commands, using new message helpers. (#810)

Fixed

  • PHPCS fixes for updated CodeSniffer dependency. (#739)
  • Send messages correctly via /sendtochannel. (#803)

0.52.0

07 Jan 23:43
f7cac58
Compare
Choose a tag to compare

Notes

Fixed

  • Entity relations and wrong types for payments. (#731)
  • Allow empty string for switch_inline_query and switch_inline_query_current_chat (InlineKeyboardButton). (#736)
  • Fix empty date entry for User and Chat entities, using the current timestamp instead. (#738)

Version 0.51.0

05 Dec 12:22
3e7af92
Compare
Choose a tag to compare

Notes

Added

  • Implemented new changes for Bot API 3.5 (InputMedia, MediaGroup). (#718)

0.50.0

17 Oct 12:12
54823db
Compare
Choose a tag to compare

Notes

Added

  • Finish implementing payments, adding all missing type checks and docblock methods. (#647)
  • Implemented new changes for Bot API 3.4 (Live Locations). (#675)

Changed

  • Message::getCommand() returns null if not a command, instead of false. (#654)

Fixed

  • SQL update script for version 0.44.1-0.45.0.
  • Issues found by Scrutinizer (Type hints and return values). (#654)
  • Check inline keyboard button parameter value correctly. (#672)

0.49.0

17 Sep 14:51
04de592
Compare
Choose a tag to compare

Notes

Added

  • Donation section and links in readme.
  • Missing payment methods in Request class.
  • Some helper methods for replying to commands and answering queries.

Changed

  • Updated and optimised all DB classes, removing a lot of bulky code.

Fixed

  • Ensure named SQL statement parameters are unique.
  • Channel selection when using DB::selectChats().