Skip to content

Releases: php-telegram-bot/core

0.47.0

06 Aug 11:39
75d992c
Compare
Choose a tag to compare

Notes

Changed

  • Updated readme to latest state of 0.47.0.

Fixed

  • Telegram::enableAdmin() now handles duplicate additions properly.
  • Request::getMe() failure doesn't break cron execution any more.

Security

  • New command parameter $private_only to enforce usage in private chats only (set by default for Admin commands).

0.46.0

15 Jul 21:27
fae82d9
Compare
Choose a tag to compare

Notes

Added

  • Callbacks can be added to be executed when callback queries are called.
  • New Bot API 3.1 changes (#550).
  • /cleanup command for admins, that cleans out old entries from the DB.

Changed

  • Big refactor of the Request class, removing most custom method implementations.

Version 0.45.0

25 Jun 09:34
6d10752
Compare
Choose a tag to compare

Notes

Added

  • Documents can be sent by providing its contents via Psr7 stream (as opposed to passing a file path).
  • Allow setting a custom Guzzle HTTP Client for requests (#511).
  • First implementations towards Bots API 3.0.

Changed

  • Request::sendToActiveChats and DB::selectChats now accept parameters as an options array and allow selecting of channels.

Deprecated

  • Deprecated Message::getNewChatMember() (Use Message::getNewChatMembers() instead to get an array of all newly added members).

Removed

  • Upload and download directories are not set any more by default and must be set manually.
  • Completely removed Telegram::getBotName() and Entity::getBotName() (Use ::getBotUsername() instead).
  • Completely removed deprecated Telegram::unsetWebhook() (Use Telegram::deleteWebhook() instead).

Fixed

  • ID fields are now typed with PARAM_STR PDO data type, to allow huge numbers.
  • Message type data type for PDO corrected.
  • Indexed table columns now have a fitting length.
  • Take custom_input into account when using getUpdates method (mainly for testing).
  • Request limiter has been fixed to correctly support channels.

0.44.1

25 Apr 21:31
Compare
Choose a tag to compare

Notes

Fixed

  • Erroneous exception when using webhook without a database connection.

0.44.0

25 Apr 18:40
Compare
Choose a tag to compare

Notes

Added

  • Proper standalone scrutinizer.yml config.
  • Human-readable last_error_date_string for debug command.

Changed

  • Bot username no longer required for object instantiation.

Removed

Fixed

  • Format of Update content type using $update->getUpdateContent().

0.43.0

17 Apr 12:26
9d4d020
Compare
Choose a tag to compare

Notes

Added

  • Travis CI webhook for Support Bot.
  • Interval for request limiter.
  • isRunCommands() method to check if called via runCommands().
  • Ensure coding standards for tests folder with phpcs.

Changed

  • Move default commands to examples folder.
  • All links point to new organisation repo.
  • Add PHP 7.1 support and update dependencies.

Fixed

  • Prevent handling the same Telegram updates multiple times, throw exception instead.

0.42.0

09 Apr 20:30
25d74af
Compare
Choose a tag to compare

Notes

Added

  • Added getBotId() to directly access bot ID.

Changed

  • Rename bot_name to bot_username everywhere.

Deprecated

  • Deprecated Telegram::getBotName() (Use Telegram::getBotUsername() instead).

Fixed

  • Tests are more reliable now, using a properly formatted API key.

0.41.0

25 Mar 16:52
3fdc3c1
Compare
Choose a tag to compare

Notes

Added

  • $show_in_help attribute for commands, to set if it should be displayed in the /help command.
  • Link to new Telegram group: https://telegram.me/PHP_Telegram_Bot_Support
  • Introduce change log.

0.40.1

07 Mar 09:05
b0833a8
Compare
Choose a tag to compare

Notes

Fixed

  • Infinite message loop, caused by incorrect Entity variable.

0.40.0

20 Feb 21:53
2649b14
Compare
Choose a tag to compare

Notes

Added

  • Request limiter for incoming requests.

Fixed

  • Faulty formatting in logger.