php-telegram-bot/core
PHP Telegram Bot based on the official Telegram Bot API
๐ 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
๐ฆ 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".
๐ฆ 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)
๐ฆ 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)
๐ฆ 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)
๐ฆ 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.
๐ฆ 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.
๐ฆ 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
๐ฆ 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))
๐ฆ 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)
๐ฆ 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))
๐ฆ 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)
๐ฆ 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)
๐ฆ 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)
๐ฆ 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)
๐ฆ 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)
๐ฆ 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)
๐ฆ 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)
๐ฆ 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))
๐ฆ 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)
๐ฆ 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)
๐ฆ 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)
๐ฆ 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)
๐ฆ 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."))
๐ฆ 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))
๐ฆ 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))
๐ฆ 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))
๐ฆ 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))
๐ฆ 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))
๐ฆ 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))
