All Notable changes to PHP Telegram Bot Api will be documented in this file
- Add
\TelegramBot\Api\Types\Update::$myChatMemberfield - Add
\TelegramBot\Api\Types\Update::$chatMemberfield - Add
\TelegramBot\Api\Types\Update::$chatJoinRequestfield - Add
\TelegramBot\Api\BotApi::createChatInviteLinkapi method - Add
\TelegramBot\Api\BotApi::editChatInviteLinkapi method - Add
\TelegramBot\Api\BotApi::revokeChatInviteLinkapi method - Add
\TelegramBot\Api\BotApi::approveChatJoinRequestapi method - Add
\TelegramBot\Api\BotApi::declineChatJoinRequestapi method - Add support for third party http clients (
psr/http-clientandsymfony/http-client) - Add support for local bot API server
- Add method
\TelegramBot\Api\BotApi::validateWebAppDatato validatewindow.Telegram.WebApp.initData - Add
\TelegramBot\Api\Types\Message::$videoNotefield - Drop php < 8.1
- Add
\TelegramBot\Api\Types\Update::$messageReactionfield - Add
\TelegramBot\Api\Types\Update::$messageReactionCountfield - Add
\TelegramBot\Api\BotApi::setMessageReactionapi method - Add
\TelegramBot\Api\BotApi::deleteMessagesapi method - Add
\TelegramBot\Api\BotApi::copyMessagesapi method - Add
\TelegramBot\Api\BotApi::forwardMessagesapi method - Add
\TelegramBot\Api\BotApi::getUserChatBoostsapi method
- Deprecate
reply_to_message_idandallow_sending_without_replyparameters to\TelegramBot\Api\BotApimethods. Usereply_parametersinstead. - Deprecate
disable_web_page_previewparameter to\TelegramBot\Api\BotApimethods. Uselink_preview_optionsinstead.
- 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
- 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
- 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
- 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
\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
- 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