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_bot
added touser
DB table.
Changed
- ❗ Corrected
ServerResponse->printError
method to print by default and return by setting$return
parameter. - Ensure command names are handled as lower case.
Fixed
- Correctly save
reply_to_message
to 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_only
to 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::sendToActiveChats
andDB::selectChats
now 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_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
Notes
Fixed
- Erroneous exception when using webhook without a database connection.
0.44.0
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
- 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
tests
folder withphpcs
.
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
Notes
Added
- Added
getBotId()
to directly access bot ID.
Changed
- Rename
bot_name
tobot_username
everywhere.
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_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.