GitPedia
php-telegram-bot

php-telegram-bot/core

PHP Telegram Bot based on the official Telegram Bot API

30 Releases
Latest: 2y ago
0.83.1Latest
TiiFuchsTiiFuchsยท2y agoยทJune 10, 2024
GitHub

๐Ÿ“‹ What's Changed

  • FastFix to Critical Error. by @r3bers in https://github.com/php-telegram-bot/core/pull/1467
  • Make sure setCustomBotApiUri has an effect if Telegram object was already instantiated. by @TiiFuchs in https://github.com/php-telegram-bot/core/pull/1296
  • Update 0.82.0-0.83.0.sql by @r3bers in https://github.com/php-telegram-bot/core/pull/1468

โœจ New Contributors

  • @r3bers made their first contribution in https://github.com/php-telegram-bot/core/pull/1467
  • Full Changelog: https://github.com/php-telegram-bot/core/compare/0.83.0...0.83.1
Version 0.83.00.83.0
noplanmannoplanmanยท2y agoยทMay 25, 2024
GitHub

๐Ÿ“ฆ Notes

  • [:ledger: View file changes](https://github.com/php-telegram-bot/core/compare/0.82.0...0.83.0) โˆ™ [:page_with_curl: DB migration script](https://github.com/php-telegram-bot/core/tree/master/utils/db-schema-update/0.82.0-0.83.0.sql)
  • [:exclamation:](https://github.com/php-telegram-bot/core/wiki/Breaking-backwards-compatibility#minimum-php-81) PHP 8.1+ required!
  • Last version with database support built in to the core.

โœจ Added

  • Bot API 7.0 ([@noplanman](https://github.com/noplanman), [@TiiFuchs](https://github.com/TiiFuchs)) (#1459)
  • Bot API 7.1 ([@noplanman](https://github.com/noplanman)) (#1465)

๐Ÿ“‹ Changed

  • [:exclamation:](https://github.com/php-telegram-bot/core/wiki/Breaking-backwards-compatibility#user-to-users) Various fields have been pluralised from "user" to "users".
Version 0.82.00.82.0
noplanmannoplanmanยท2y agoยทOctober 26, 2023
GitHub

๐Ÿ“ฆ Notes

  • [:ledger: View file changes](https://github.com/php-telegram-bot/core/compare/0.81.0...0.82.0) โˆ™ [:page_with_curl: DB migration script](https://github.com/php-telegram-bot/core/tree/master/utils/db-schema-update/0.81.0-0.82.0.sql)
  • Really the last version that supports PHP 7! Only PHP 8 after this one.

โœจ Added

  • Bot API 6.8, 6.9 ([@noplanman](https://github.com/noplanman)) (#1418, #1427)
  • Test against PHP 8.3 ([@sergiy-petrov](https://github.com/sergiy-petrov)) (#1421)

๐Ÿ› Fixed

  • Missing `thumbnail_url` renaming.
  • Fix broken exception handling ([@mlocati](https://github.com/mlocati)) (#1425)
Version 0.81.00.81.0
noplanmannoplanmanยท3y agoยทMay 27, 2023
GitHub

๐Ÿ“ฆ Notes

  • [:ledger: View file changes](https://github.com/php-telegram-bot/core/compare/0.80.0...0.81.0) โˆ™ [:page_with_curl: DB migration script](https://github.com/php-telegram-bot/core/tree/master/utils/db-schema-update/0.80.0-0.81.0.sql)
  • Last version that supports PHP 7.

โœจ Added

  • Support dynamic Entity properties for newer PHP versions ([@alesinicio](https://github.com/), [@TiiFuchs](https://github.com/)) (#1390)
  • Bot API 6.4, 6.5, 6.6, 6.7 ([@noplanman](https://github.com/)) (#1389)

๐Ÿ—‘๏ธ Removed

  • Keyboard validations ([@noplanman](https://github.com/)) (#1395)

๐Ÿ› Fixed

  • Fixed a bug where new incoming updates are not correctly passed to the Command object after the first time when getUpdates is used. ([@uspilot](https://github.com/)) (#1384)
Version 0.80.00.80.0
noplanmannoplanmanยท3y agoยทNovember 9, 2022
GitHub

๐Ÿ“ฆ Notes

  • [:ledger: View file changes](https://github.com/php-telegram-bot/core/compare/0.79.0...0.80.0) โˆ™ [:page_with_curl: DB migration script](https://github.com/php-telegram-bot/core/tree/master/utils/db-schema-update/0.79.0-0.80.0.sql)

โœจ Added

  • Bot API 6.3 ([@TiiFuchs](https://github.com/TiiFuchs)) (#1371)

๐Ÿ“‹ Changed

  • [:exclamation:](https://github.com/php-telegram-bot/core/wiki/Breaking-backwards-compatibility#commands-with-underscores) Commands can now contain underscores (`FooBarCommand` is handled by `/foo_bar`). ([@mlocati](https://github.com/mlocati)) (#1365)
Version 0.79.00.79.0
noplanmannoplanmanยท3y agoยทSeptember 4, 2022
GitHub

๐Ÿ“ฆ Notes

  • [:ledger: View file changes](https://github.com/php-telegram-bot/core/compare/0.78.0...0.79.0)

โœจ Added

  • Bot API 6.2 ([@OxMohsen](https://github.com/OxMohsen)) (#1350)

๐Ÿ—‘๏ธ Removed

  • `VoiceChatX` entities, use `VideoChatX` entities instead.
  • `all_members_are_administrators` property from `Message` entity. Database column still exists, but may be removed in the future.
  • `Request::getChatMembersCount()`, use `Request::getChatMemberCount()` instead.
  • `Request::kickChatMember()`, use `Request::banChatMember()` instead.
Version 0.78.00.78.0
noplanmannoplanmanยท3y agoยทJuly 3, 2022
GitHub

๐Ÿ“ฆ Notes

  • [:ledger: View file changes](https://github.com/php-telegram-bot/core/compare/0.77.1...0.78.0) โˆ™ [:page_with_curl: DB migration script](https://github.com/php-telegram-bot/core/tree/master/utils/db-schema-update/0.77.1-0.78.0.sql)
  • 64 bit PHP install required to handle files larger than 2GB!

โœจ Added

  • Bot API 6.1 ([@jyxjjj](https://github.com/jyxjjj), [@OxMohsen](https://github.com/OxMohsen), [@noplanman](https://github.com/noplanman)) (#1333, #1338, #1339)
  • New Update field helpers for Command class.
Version 0.77.10.77.1
noplanmannoplanmanยท4y agoยทApril 24, 2022
GitHub

๐Ÿ“ฆ Notes

  • [:ledger: View file changes](https://github.com/php-telegram-bot/core/compare/0.77.0...0.77.1)

๐Ÿ› Fixed

  • PHP8+ `mixed` type hint removed
Version 0.77.00.77.0
noplanmannoplanmanยท4y agoยทApril 24, 2022
GitHub

๐Ÿ“ฆ Notes

  • [:ledger: View file changes](https://github.com/php-telegram-bot/core/compare/0.76.1...0.77.0) โˆ™ [:page_with_curl: DB migration script](https://github.com/php-telegram-bot/core/tree/master/utils/db-schema-update/0.76.1-0.77.0.sql)

โœจ Added

  • Bot API 6.0 ([@TiiFuchs](https://github.com/TiiFuchs)) (#1318)

๐Ÿ—‘๏ธ Deprecated

  • Telegram changed `voice_chat_X` to `video_chat_X`. `VoiceChatX` event classes are deprecated, use new `VideoChatX` event classes instead.

๐Ÿ› Fixed

  • Return correct data in `Entity::jsonSerialize` ([@TiiFuchs](https://github.com/TiiFuchs))
0.76.1
noplanmannoplanmanยท4y agoยทMarch 30, 2022
GitHub

๐Ÿ“ฆ Notes

  • [๐Ÿ“’ View file changes](https://github.com/php-telegram-bot/core/compare/0.76.0...0.76.1)

๐Ÿ› Fixed

  • Fix Entity serialising for Keyboards ([@TiiFuchs](https://github.com/TiiFuchs)) (#1304)
0.76.0
noplanmannoplanmanยท4y agoยทMarch 20, 2022
GitHub

๐Ÿ“ฆ Notes

  • [๐Ÿ“’ View file changes](https://github.com/php-telegram-bot/core/compare/0.75.0...0.76.0)

โœจ Added

  • Bot API 5.6 ([@TiiFuchs](https://github.com/TiiFuchs)) (#1275)
  • Bot API 5.7 ([@TiiFuchs](https://github.com/TiiFuchs)) (#1284)
  • PSR3 (psr/log) version 2 and 3 compatible ([@noplanman](https://github.com/noplanman)) (#1287)
  • Entity implements and uses JsonSerializable now ([@TiiFuchs](https://github.com/TiiFuchs))
  • Test with PHP 8.1 on Travis CI ([@osavchenko](https://github.com/osavchenko)) (#1291)

๐Ÿ“‹ Changed

  • Bugfix: Fixed condition in \Longman\TelegramBot\Entities\Chat::isGroupChat() that previously also counted super groups and channels. ([@TiiFuchs](https://github.com/TiiFuchs))
Version 0.75.00.75.0
noplanmannoplanmanยท4y agoยทDecember 29, 2021
GitHub

๐Ÿ“ฆ Notes

  • [๐Ÿ“’ View file changes](https://github.com/php-telegram-bot/core/compare/0.74.0...0.75.0) โˆ™ [:page_with_curl: DB migration script](https://github.com/php-telegram-bot/core/tree/master/utils/db-schema-update/0.74.0-0.75.0.sql)

โœจ Added

  • Ability to directly set commands paths. ([@wright-tw](https://github.com/wright-tw), [@noplanman](https://github.com/noplanman)) (#1252)
  • Bot API 5.4. ([@TiiFuchs](https://github.com/TiiFuchs), [@noplanman](https://github.com/noplanman)) (#1266)
  • Bot API 5.5. ([@TiiFuchs](https://github.com/TiiFuchs), [@noplanman](https://github.com/noplanman)) (#1267)
  • The field `message_auto_delete_time` was added to the Chat Entity ([@TiiFuchs](https://github.com/TiiFuchs)) (#1265)

๐Ÿ—‘๏ธ Removed

  • [:exclamation:](https://github.com/php-telegram-bot/core/wiki/Breaking-backwards-compatibility#removed-deprecated-chatactions) Removed deprecated `ChatAction::` `RECORD_AUDIO` and `UPLOAD_AUDIO`. Use `RECORD_VOICE` and `UPLOAD_VOICE` instead. ([@TiiFuchs](https://github.com/TiiFuchs)) (#1267)

๐Ÿ› Fixed

  • PHP 8.1 deprecations. ([@maxgorovenko](https://github.com/maxgorovenko)) (#1260)
Version 0.74.00.74.0
noplanmannoplanmanยท5y agoยทJune 26, 2021
GitHub

๐Ÿ“ฆ Notes

  • [๐Ÿ“’ View file changes](https://github.com/php-telegram-bot/core/compare/0.73.1...0.74.0)

โœจ Added

  • Bot API 5.3 (Personalized Commands, Keyboard Placeholders). ([@TiiFuchs](https://github.com/TiiFuchs), [@noplanman](https://github.com/noplanman)) (#1229, #1231)
Version 0.73.10.73.1
noplanmannoplanmanยท5y agoยทJune 20, 2021
GitHub

๐Ÿ“ฆ Notes

  • [๐Ÿ“’ View file changes](https://github.com/php-telegram-bot/core/compare/0.73.0...0.73.1)

๐Ÿ› Fixed

  • Allow new optional parameters when setting and deleting webhook. ([@TiiFuchs](https://github.com/TiiFuchs)) (#1226)
Version 0.73.00.73.0
noplanmannoplanmanยท5y agoยทJune 14, 2021
GitHub

๐Ÿ“ฆ Notes

  • [๐Ÿ“’ View file changes](https://github.com/php-telegram-bot/core/compare/0.72.0...0.73.0) โˆ™ [๐Ÿ“ƒ DB migration script](https://github.com/php-telegram-bot/core/tree/master/utils/db-schema-update/0.72.0-0.73.0.sql)

โœจ 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)
Version 0.72.00.72.0
noplanmannoplanmanยท5y agoยทApril 16, 2021
GitHub

๐Ÿ“ฆ Notes

  • [๐Ÿ“’ View file changes](https://github.com/php-telegram-bot/core/compare/0.71.0...0.72.0) โˆ™ [๐Ÿ“ƒ DB migration script](https://github.com/php-telegram-bot/core/tree/master/utils/db-schema-update/0.71.0-0.72.0.sql)

โœจ 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)
Version 0.71.00.71.0
noplanmannoplanmanยท5y agoยทMarch 5, 2021
GitHub

๐Ÿ“ฆ Notes

  • [:ledger: View file changes](https://github.com/php-telegram-bot/core/compare/0.70.1...0.71.0)

โœจ 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)
Version 0.70.10.70.1
noplanmannoplanmanยท5y agoยทDecember 25, 2020
GitHub

๐Ÿ“ฆ Notes

  • [:ledger: View file changes](https://github.com/php-telegram-bot/core/compare/0.70.0...0.70.1)

โœจ 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)
Version 0.70.00.70.0
noplanmannoplanmanยท5y agoยทDecember 21, 2020
GitHub

๐Ÿ“ฆ Notes

  • [๐Ÿ“’ View file changes](https://github.com/php-telegram-bot/core/compare/0.64.0...0.70.0) โˆ™ [๐Ÿ“ƒ DB migration script](https://github.com/php-telegram-bot/core/tree/master/utils/db-schema-update/0.64.0-0.70.0.sql)
  • [โ—](https://github.com/php-telegram-bot/core/wiki/Breaking-backwards-compatibility#minimum-php-73) PHP 7.3+ required, so make sure your code is up to date with correct types!

โœจ Added

  • Bot API 5.0 (Big update!). ([#1147](https://github.com/php-telegram-bot/core/pull/1147))

๐Ÿ“‹ Changed

  • Upgrade code to PHP 7.3. ([#1136](https://github.com/php-telegram-bot/core/pull/1136), [#1158](https://github.com/php-telegram-bot/core/pull/1158))
  • Speed up `/clean` query. (@dva-re) ([#1139](https://github.com/php-telegram-bot/core/pull/1139))
  • Various code prettifications. (@akalongman) ([#1140](https://github.com/php-telegram-bot/core/pull/1140), [#1141](https://github.com/php-telegram-bot/core/pull/1141), [#1142](https://github.com/php-telegram-bot/core/pull/1142), [#1143](https://github.com/php-telegram-bot/core/pull/1143))

๐Ÿ”’ Security

  • Minimum PHP 7.3, allow PHP 8.0. ([#1136](https://github.com/php-telegram-bot/core/pull/1136), [#1158](https://github.com/php-telegram-bot/core/pull/1158))
Version 0.64.00.64.0
noplanmannoplanmanยท5y agoยทOctober 4, 2020
GitHub

๐Ÿ“ฆ Notes

  • [๐Ÿ“’ View file changes](https://github.com/php-telegram-bot/core/compare/0.63.1...0.64.0)

โœจ Added

  • Support for Guzzle 7. ([@KristobalJunta](https://github.com/KristobalJunta)) (#1133)

๐Ÿ› Fixed

  • Correct SQL migration script for older versions of MySQL. (#1135)
Version 0.63.10.63.1
noplanmannoplanmanยท6y agoยทJune 24, 2020
GitHub

๐Ÿ“ฆ Notes

  • [๐Ÿ“’ View file changes](https://github.com/php-telegram-bot/core/compare/0.63.0...0.63.1)
  • This fixed version is necessary for Windows users.

๐Ÿ› Fixed

  • Regex in `getFileNamespace()` that introduced a breaking bug in #1114. ([@jacklul](https://github.com/jacklul)) (#1115)
  • Fixed `runCommands()` not working due to custom namespace feature. ([@jacklul](https://github.com/jacklul)) (#1115, #1118)
Version 0.63.00.63.0
noplanmannoplanmanยท6y agoยทJune 17, 2020
GitHub

๐Ÿ“ฆ Notes

  • [๐Ÿ“’ View file changes](https://github.com/php-telegram-bot/core/compare/0.62.0...0.63.0) โˆ™ [๐Ÿ“ƒ DB migration script](https://github.com/php-telegram-bot/core/tree/master/utils/db-schema-update/0.62.0-0.63.0.sql)

โœจ 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](https://github.com/VRciF)) (#1045)
  • Replaced 'generic' and 'genericmessage' strings with Telegram::GENERIC\_COMMAND and Telegram::GENERIC\_MESSAGE\_COMMAND constants. ([@1int](https://github.com/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](https://github.com/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

  • [โ—](https://github.com/php-telegram-bot/core/wiki/Breaking-backwards-compatibility#static-method-entityescapemarkdown) Made `Entity::escapeMarkdown` static, to not require an `Entity` object. (#1094)
  • Allow custom namespacing for commands. ([@Jonybang](https://github.com/Jonybang)) (#689)

๐Ÿ› Fixed

  • Primary key for `poll_answer` also requires the `user_id`. (#1087)
  • Small SQL foreign key fixes. (#1105)
Version 0.62.00.62.0
noplanmannoplanmanยท6y agoยทApril 8, 2020
GitHub

๐Ÿ“ฆ Notes

  • [๐Ÿ“’ View file changes](https://github.com/php-telegram-bot/core/compare/0.61.1...0.62.0) โˆ™ [๐Ÿ“ƒ DB migration script](https://github.com/php-telegram-bot/core/tree/master/utils/db-schema-update/0.61.1-0.62.0.sql)

โœจ 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
noplanmannoplanmanยท6y agoยทNovember 23, 2019
GitHub

๐Ÿ“ฆ Notes

  • [๐Ÿ“’ View file changes](https://github.com/php-telegram-bot/core/compare/0.61.0...0.61.1)

โœจ Added

  • Tests for schema update scripts, to ensure that updates work as expected. ([#1025](https://github.com/php-telegram-bot/core/pull/1025 "Fix DB schema update script and add tests for them."))

๐Ÿ› Fixed

  • Parameter `inline_query_id` in `InlineQuery::answerInlineQuery`. ([#1021](https://github.com/php-telegram-bot/core/pull/1021 "Typo in parameter name"))
  • Corrected DB schema update 0.60.0-0.61.0. ([#1025](https://github.com/php-telegram-bot/core/pull/1025 "Fix DB schema update script and add tests for them."))
0.61.0
noplanmannoplanmanยท6y agoยทNovember 2, 2019
GitHub

๐Ÿ“ฆ Notes

  • [๐Ÿ“’ View file changes](https://github.com/php-telegram-bot/core/compare/0.60.0...0.61.0) โˆ™ [๐Ÿ“ƒ DB migration script](https://github.com/php-telegram-bot/core/tree/master/utils/db-schema-update/0.60.0-0.61.0.sql)
  • โ— Built-in logging (Monolog) has been removed, a custom PSR-3 logger must be used now! (see [#964](https://github.com/php-telegram-bot/core/pull/964) for more info)

โœจ Added

  • Code snippet in `GenericmessageCommand` to keep obsolete service message system commands working. ([#999](https://github.com/php-telegram-bot/core/pull/999))
  • Static boolean property `SystemCommand::$execute_deprecated` (must be assigned before handling the request) to try and execute any deprecated system command. ([#999](https://github.com/php-telegram-bot/core/pull/999))
  • Improved MySQL DB index for `message` table, making the cleanup much faster on bigger databases. (Thanks to @damianperez) ([#1015](https://github.com/php-telegram-bot/core/pull/1015))
  • `/cleanup` command now supports dry run which simply outputs all queries that would be run. ([#1015](https://github.com/php-telegram-bot/core/pull/1015))

๐Ÿ“‹ Changed

  • Small readme and code fixes / simplifications. ([#1001](https://github.com/php-telegram-bot/core/pull/1001))
  • Upgrade PHPUnit to 8.x and PHPCS to 3.5. For tests now minimum PHP version is 7.2. ([#1008](https://github.com/php-telegram-bot/core/pull/1008))
  • Updated updates log importer (requires PHP7+). ([#1009](https://github.com/php-telegram-bot/core/pull/1009))

๐Ÿ—‘๏ธ Removed

  • Service message system commands, which are now handled by `GenericmessageCommand`. ([#999](https://github.com/php-telegram-bot/core/pull/999))
  • [โ—](https://github.com/php-telegram-bot/core/wiki/Breaking-backwards-compatibility#remove-monolog-from-core) Monolog has been removed as built-in logging engine. ([#1009](https://github.com/php-telegram-bot/core/pull/1009))
  • Assets have been moved to a dedicated repository. ([#1012](https://github.com/php-telegram-bot/core/pull/1012))

๐Ÿ› Fixed

  • Boolean value for Polls gets saved correctly in MySQL DB. ([#996](https://github.com/php-telegram-bot/core/pull/996))
  • Correctly use `Request::answerInlineQuery` in `InlineQuery::answer`. ([#1001](https://github.com/php-telegram-bot/core/pull/1001))
  • PSR-12 incompatibilities in the codebase. ([#1008](https://github.com/php-telegram-bot/core/pull/1008))
  • Improved and corrected `/cleanup` command. ([#1015](https://github.com/php-telegram-bot/core/pull/1015))
0.60.0
noplanmannoplanmanยท6y agoยทAugust 16, 2019
GitHub

๐Ÿ“ฆ Notes

  • [๐Ÿ“’ View file changes](https://github.com/php-telegram-bot/core/compare/0.59.1...0.60.0)

โœจ Added

  • Bot API 4.4 (Animated stickers, `ChatPermissions`). ([#990](https://github.com/php-telegram-bot/core/pull/990))

๐Ÿ“‹ Changed

  • Allow passing native entity objects to requests. ([#991](https://github.com/php-telegram-bot/core/pull/991))

๐Ÿ› Fixed

  • Non-existing commands now correctly execute `GenericCommand` again. ([#993](https://github.com/php-telegram-bot/core/pull/993))
0.59.1
noplanmannoplanmanยท6y agoยทJuly 18, 2019
GitHub

๐Ÿ“ฆ Notes

  • [๐Ÿ“’ View file changes](https://github.com/php-telegram-bot/core/compare/0.59.0...0.59.1)
  • โ— Deprecated logging method will be removed in the next version, update to PSR-3 now! (see [#964](https://github.com/php-telegram-bot/core/pull/964) for more info)

โœจ Added

  • Issue labels set automatically via templates.

๐Ÿ“‹ Changed

  • Logging only updates or only debug/errors is now possible. ([#983](https://github.com/php-telegram-bot/core/pull/983))

๐Ÿ› Fixed

  • Don't output deprecation notices if no logging is enabled. ([#983](https://github.com/php-telegram-bot/core/pull/983))
  • Respect custom HTTP Client initialisation, no matter when it is set. ([#986](https://github.com/php-telegram-bot/core/pull/986))
0.59.0
noplanmannoplanmanยท6y agoยทJuly 7, 2019
GitHub

๐Ÿ“ฆ Notes

  • [๐Ÿ“’ View file changes](https://github.com/php-telegram-bot/core/compare/0.58.0...0.59.0)

๐Ÿ“‹ Changed

  • Touched up readme including header and badges. ([#981](https://github.com/php-telegram-bot/core/pull/981))
  • Updated changelog to be more useful for external integrations like [Tidelift](https://tidelift.com/subscription/pkg/packagist-longman-telegram-bot?utm_source=packagist-longman-telegram-bot&utm_medium=referral&utm_campaign=changelog) and GitHub releases. ([#981](https://github.com/php-telegram-bot/core/pull/981))

๐Ÿ—‘๏ธ Removed

  • Abstract methods from `InputMedia` interface, as method annotations didn't work for propagation. ([#978](https://github.com/php-telegram-bot/core/pull/978))
0.58.0
noplanmannoplanmanยท7y agoยทJune 26, 2019
GitHub

๐Ÿ“ฆ Notes

  • [๐Ÿ“’ View file changes](https://github.com/php-telegram-bot/core/compare/0.57.0...0.58.0) โˆ™ [๐Ÿ“ƒ DB migration script](https://github.com/php-telegram-bot/core/tree/master/utils/db-schema-update/0.57.0-0.58.0.sql)
  • Logging now uses [PSR-3](https://www.php-fig.org/psr/psr-3) `LoggerInterface`. Learn more about how to use it here: [#964](https://github.com/php-telegram-bot/core/pull/964)

โœจ Added

  • New funding and support details. ([#971](https://github.com/php-telegram-bot/core/pull/971))
  • Custom issue templates. ([#972](https://github.com/php-telegram-bot/core/pull/972))
  • Bot API 4.3 (Seamless Telegram Login, `LoginUrl`) ([#957](https://github.com/php-telegram-bot/core/pull/957))
  • `reply_markup` field to `Message` entity. ([#957](https://github.com/php-telegram-bot/core/pull/957))

๐Ÿ“‹ Changed

  • Use PSR-12 for code style. ([#966](https://github.com/php-telegram-bot/core/pull/966))
  • Some general housekeeping. ([#972](https://github.com/php-telegram-bot/core/pull/972))
  • [โ—](https://github.com/php-telegram-bot/core/wiki/Breaking-backwards-compatibility#return-value-of-empty-entity-properties) Return an empty array for Entity properties with no items, instead of `null`. ([#969](https://github.com/php-telegram-bot/core/pull/969))
  • `TelegramLog` now adheres to [PSR-3](https://www.php-fig.org/psr/psr-3) `LoggerInterface` and allows custom logger implementations. ([#964](https://github.com/php-telegram-bot/core/pull/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](https://github.com/php-telegram-bot/core/pull/964))
  • [โ—](https://github.com/php-telegram-bot/core/wiki/Breaking-backwards-compatibility#startcommand-is-now-a-usercommand) `StartCommand` is now a `UserCommand` (not `SystemCommand` any more). ([#970](https://github.com/php-telegram-bot/core/pull/970))

๐Ÿ—‘๏ธ Removed

  • Botan.io integration completely removed. ([#968](https://github.com/php-telegram-bot/core/pull/968))

๐Ÿ› Fixed

  • `forward_date` is now correctly saved to the DB. ([#967](https://github.com/php-telegram-bot/core/pull/967))
  • Broken `StickerSet::getStickers()` method. ([#969](https://github.com/php-telegram-bot/core/pull/969))
  • Smaller code and docblock fixes. ([#973](https://github.com/php-telegram-bot/core/pull/973))

๐Ÿ”’ Security

  • Security disclosure managed by [Tidelift](https://tidelift.com/subscription/pkg/packagist-longman-telegram-bot?utm_source=packagist-longman-telegram-bot&utm_medium=referral&utm_campaign=changelog). ([#971](https://github.com/php-telegram-bot/core/pull/971))
  • Don't allow a user to call system commands directly. ([#970](https://github.com/php-telegram-bot/core/pull/970))
0.57.0
noplanmannoplanmanยท7y agoยทJune 1, 2019
GitHub

๐Ÿ“ฆ Notes

  • [๐Ÿ“’ View file changes](https://github.com/php-telegram-bot/core/compare/0.56.0...0.57.0) โˆ™ [๐Ÿ“ƒ DB migration script](https://github.com/php-telegram-bot/core/tree/master/utils/db-schema-update/0.56.0-0.57.0.sql)
  • โ• This is a big update and involves a bunch of MySQL database updates, so please *review the changelog carefully*.

โœจ Added

  • New logo! ๐ŸŽ‰ ([#954](https://github.com/php-telegram-bot/core/pull/954))
  • Bot API 4.2 (Polls). ([#948](https://github.com/php-telegram-bot/core/pull/948))
  • `getIsMember()` method to `ChatMember` entity. ([#948](https://github.com/php-telegram-bot/core/pull/948))
  • `getForwardSenderName()` method to `Message` entity. ([#948](https://github.com/php-telegram-bot/core/pull/948))
  • `forward_sender_name` (and forgotten `forward_signature`) DB fields. ([#948](https://github.com/php-telegram-bot/core/pull/948))
  • Added missing API fields to Entities and DB. ([#885](https://github.com/php-telegram-bot/core/pull/885))
  • Created database tables for `shipping_query` and `pre_checkout_query`. ([#885](https://github.com/php-telegram-bot/core/pull/885))

๐Ÿ› Fixed

  • Missing DB table name specifier in `/cleanup` command. ([#947](https://github.com/php-telegram-bot/core/pull/947))