Php Telegram Bot Core Versions Save

PHP Telegram Bot based on the official Telegram Bot API

0.74.0

2 years ago

Notes

Added

  • Bot API 5.3 (Personalized Commands, Keyboard Placeholders). (@TiiFuchs, @noplanman) (#1229, #1231)

0.73.1

2 years ago

Notes

Fixed

  • Allow new optional parameters when setting and deleting webhook. (@TiiFuchs) (#1226)

0.73.0

2 years ago

Notes

Added

  • Bot API 5.2 (Payments 2.0). (#1216)
  • Possibility to connect to MySQL DB with unix socket. (#1220)

Changed

  • Telegram::runCommands returns array of ServerResponse objects of executed commands. (#1223)

Fixed

  • Regex for namespace extraction from custom command classes.
  • Nested and user-triggered Telegram::runCommands. (#1223)

0.72.0

3 years ago

Notes

Added

  • Bot API 5.1 (ChatMember Update types, Improved Invite Links, Voice Chat). (@massadm, @noplanman) (#1199)
  • Method to allow adding command classes directly. (@alligator77, @noplanman) (#1207, #1209)

Deprecated

  • Telegram::handleGetUpdates method should be passed a $data array for parameters. (#1202)

Fixed

  • message.edit_date is now of type timestamp. (#1191)
  • Allow all update types by default when using getUpdates method. (#1202)

0.71.0

3 years ago

Notes

Added

  • Define a custom Bot API server and file download URI. (#1168)

Changed

  • Improved error messages for empty input. (#1164)
  • Log update when processing it, not when fetching input. (#1164)

Fixed

  • getUpdates method wrongly sends only 1 Update when a limit of 0 is passed. (#1169)
  • Telegram::runCommands() now passes the correct message text to the commands. (#1181)
  • Request limiter accepts chat ID as integer and string. (#1182)
  • Calling Keyboard constructor without any parameters. (@hutattedonmyarm) (#1184)

0.70.1

3 years ago

Notes

Added

  • Extra parameter for Request::sendMessage() to pass options and return all response objects for split messages. (#1163)

Fixed

  • Ensure download and upload path variables are defined. (#1162)

0.70.0

3 years ago

Notes

Added

  • Bot API 5.0 (Big update!). (#1147)

Changed

Security

0.64.0

3 years ago

Notes

Added

Fixed

  • Correct SQL migration script for older versions of MySQL. (#1135)

0.63.1

3 years ago

Notes

Fixed

  • Regex in getFileNamespace() that introduced a breaking bug in #1114. (@jacklul) (#1115)
  • Fixed runCommands() not working due to custom namespace feature. (@jacklul) (#1115, #1118)

0.63.0

3 years ago

Notes

Added

  • New method setUpdateFilter($callback) used to filter processUpdate(Update $update) calls. If $callback returns false the update isn't processed and an empty falsey ServerResponse is returned. (@VRciF) (#1045)
  • Replaced 'generic' and 'genericmessage' strings with Telegram::GENERIC_COMMAND and Telegram::GENERIC_MESSAGE_COMMAND constants. (@1int) (#1074)
  • Bot API 4.8 (Extra Poll and Dice features). (#1082)
  • Allow custom MySQL port to be defined for tests. (#1090)
  • New static method Entity::escapeMarkdownV2 for MarkdownV2. (#1094)
  • Remove bot token from debug http logs, this can be disabled by setting TelegramLog::$remove_bot_token parameter to false. (@jacklul) (#1095)
  • TelegramLog::$always_log_request_and_response parameter to force output of the request and response data to the debug log, also for successful requests. (#1089)
  • Bot API 4.9 (New via_bot field). (#1112)

Changed

  • Made Entity::escapeMarkdown static, to not require an Entity object. (#1094)
  • Allow custom namespacing for commands. (@Jonybang) (#689)

Fixed

  • Primary key for poll_answer also requires the user_id. (#1087)
  • Small SQL foreign key fixes. (#1105)