Skip to content

Releases: php-telegram-bot/core

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().

0.48.0

26 Aug 18:24
8fbc070
Compare
Choose a tag to compare

Notes

Added

  • New entities, methods, update types and inline keyboard button for Payments (Bot API 3.0).
  • Add new methods, fields and objects for working with stickers (Bot API 3.2).
  • New fields for Chat, User and Message objects (Bot API 3.3). is_bot added to user DB table.

Changed

  • Corrected ServerResponse->printError method to print by default and return by setting $return parameter.
  • Ensure command names are handled as lower case.

Fixed

  • Correctly save reply_to_message to DB.

0.47.1

06 Aug 15:32
e7303ed
Compare
Choose a tag to compare

Notes

Added

  • Linked version numbers in changelog for easy verification of code changes.

Fixed

  • Private-only commands work with edited messages now too.