3.2 KiB
Executable File
3.2 KiB
Executable File
Changelog
All Notable changes to PHP Telegram Bot Api will be documented in this file
2.5.0 - 2023-08-09
Added
- Add missing
protect_contentandallow_sending_without_replyparameters to\TelegramBot\Api\BotApimethods - Add support
attach://<file_attach_name>in\TelegramBot\Api\BotApimethodssendMediaGroup,createNewStickerSet,addStickerToSet,editMessageMedia - Rename
thumbtothumbnailparameter inAnimation,Document,Sticker,StickerSet,Video,VideoNotetypes - Rename
thumb_*tothumbnail_*parameter inInline/QueryResulttypes - Add missing phpDoc for
$replyMarkupparameters - Fix phpDoc for
\TelegramBot\Api\BotApi::setWebhook$allowedUpdatesparameter. Automatically serialize if array passed - Fix phpDoc for
\TelegramBot\Api\Types\Message::$newChatMembers - Add
\TelegramBot\Api\BotApi::getChatMemberCountmethod - Add
\TelegramBot\Api\BotApi::banChatMembermethod - Add
$messageIdto\TelegramBot\Api\BotApi::unpinChatMessage - Add
\TelegramBot\Api\Types\ForceReply::$inputFieldPlaceholderproperty
Deprecated
- Deprecate using
thumb*methods in\TelegramBot\Api\BotApi - Deprecate method
\TelegramBot\Api\BotApi::setStickerSetThumb. Use\TelegramBot\Api\BotApi::setStickerSetThumbnailinstead - Deprecate
\TelegramBot\Api\Types\ReplyKeyboardHideclass - Deprecate
\TelegramBot\Api\BotApi::getChatMembersCount. Use\TelegramBot\Api\BotApi::getChatMemberCountinstead - Deprecate
\TelegramBot\Api\BotApi::kickChatMember. Use\TelegramBot\Api\BotApi::banChatMemberinstead
2.4.0 - 2023-05-11
Added
- Add
\TelegramBot\Api\Types\Venuemapping (foursquare_type,google_place_id,google_place_type) - Add
scopeandlanguageCodeparameters to\TelegramBot\Api\BotApi::setMyCommands - Add WebApp support:
\TelegramBot\Api\BotApi::answerWebAppQuerymethod and\TelegramBot\Api\Types\Message::$webAppDataproperty - Add
\TelegramBot\Api\Types\ReplyKeyboardMarkup::$isPersistentproperty - Add
\TelegramBot\Api\Types\ReplyKeyboardMarkup::$inputFieldPlaceholderproperty
Fixed
- Fix
\TelegramBot\Api\Collection\Collection::addItemmax count constraint (#333) - Fix
\TelegramBot\Api\Types\StickerSetmapping - Fix
\TelegramBot\Api\BotApi::copyMessagenot returning\TelegramBot\Api\Types\MessageId - Fix new
$messageThreadIdparameter in\TelegramBot\Api\BotApimethods placed not in the end of the list of parameters
Changed
\TelegramBot\Api\BotApi::getMyCommandsnow returns instance\TelegramBot\Api\Types\ArrayOfBotCommandinstead of\TelegramBot\Api\Types\BotCommandarray\TelegramBot\Api\BotApi::setMyCommandsnow accepts instance of\TelegramBot\Api\Types\ArrayOfBotCommandinstead of\TelegramBot\Api\Types\BotCommandarray
Deprecated
- Deprecate
\TelegramBot\Api\Botanclass - Deprecate
$trackerTokenparameter in\TelegramBot\Api\BotApi::__construct - Deprecate
$trackerTokenparameter in\TelegramBot\Api\Events\EventCollection::__construct - Deprecate
\TelegramBot\Api\Types\PollAnswer::getFromuse\TelegramBot\Api\Types\PollAnswer::getUserinstead - Deprecate passing array of BotCommand to
\TelegramBot\Api\BotApi::setMyCommands. Use\TelegramBot\Api\Types\ArrayOfBotCommandinstead