Releases: php-telegram-bot/core
Releases · php-telegram-bot/core
0.48.0
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_botadded touserDB table.
Changed
- ❗ Corrected
ServerResponse->printErrormethod to print by default and return by setting$returnparameter. - Ensure command names are handled as lower case.
Fixed
- Correctly save
reply_to_messageto DB.
0.47.1
Notes
Added
- Linked version numbers in changelog for easy verification of code changes.
Fixed
- Private-only commands work with edited messages now too.
0.47.0
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_onlyto enforce usage in private chats only (set by default for Admin commands).
0.46.0
Version 0.45.0
Notes
- 📒 View file changes ∙ [📃 DB migration script][0.45.0-sql-migration]
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::sendToActiveChatsandDB::selectChatsnow accept parameters as an options array and allow selecting of channels.
Deprecated
- Deprecated
Message::getNewChatMember()(UseMessage::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()andEntity::getBotName()(Use::getBotUsername()instead). - ❗ Completely removed deprecated
Telegram::unsetWebhook()(UseTelegram::deleteWebhook()instead).
Fixed
- ID fields are now typed with
PARAM_STRPDO data type, to allow huge numbers. - Message type data type for PDO corrected.
- Indexed table columns now have a fitting length.
- Take
custom_inputinto account when using getUpdates method (mainly for testing). - Request limiter has been fixed to correctly support channels.
0.44.1
Notes
Fixed
- Erroneous exception when using webhook without a database connection.
0.44.0
Notes
Added
- Proper standalone
scrutinizer.ymlconfig. - Human-readable
last_error_date_stringfor debug command.
Changed
- Bot username no longer required for object instantiation.
Removed
- All examples have been moved to a dedicated repository.
Fixed
- ❗ Format of Update content type using
$update->getUpdateContent().
0.43.0
Notes
Added
- Travis CI webhook for Support Bot.
- Interval for request limiter.
isRunCommands()method to check if called viarunCommands().- Ensure coding standards for
testsfolder withphpcs.
Changed
- Move default commands to
examplesfolder. - 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
Notes
Added
- Added
getBotId()to directly access bot ID.
Changed
- Rename
bot_nametobot_usernameeverywhere.
Deprecated
- Deprecated
Telegram::getBotName()(UseTelegram::getBotUsername()instead).
Fixed
- Tests are more reliable now, using a properly formatted API key.
0.41.0
Notes
Added
$show_in_helpattribute for commands, to set if it should be displayed in the/helpcommand.- Link to new Telegram group:
https://telegram.me/PHP_Telegram_Bot_Support - Introduce change log.