All Notable changes to PHP Telegram Bot Api
will be documented in this file
- Add
\TelegramBot\Api\Types\Update::$myChatMember
field - Add
\TelegramBot\Api\Types\Update::$chatMember
field - Add
\TelegramBot\Api\Types\Update::$chatJoinRequest
field - Add
\TelegramBot\Api\BotApi::createChatInviteLink
api method - Add
\TelegramBot\Api\BotApi::editChatInviteLink
api method - Add
\TelegramBot\Api\BotApi::revokeChatInviteLink
api method - Add
\TelegramBot\Api\BotApi::approveChatJoinRequest
api method - Add
\TelegramBot\Api\BotApi::declineChatJoinRequest
api method - Add support for third party http clients (
psr/http-client
andsymfony/http-client
) - Add support for local bot API server
- Add method
\TelegramBot\Api\BotApi::validateWebAppData
to validatewindow.Telegram.WebApp.initData
- Add
\TelegramBot\Api\Types\Message::$videoNote
field - Drop php < 8.1
- Add
\TelegramBot\Api\Types\Update::$messageReaction
field - Add
\TelegramBot\Api\Types\Update::$messageReactionCount
field - Add
\TelegramBot\Api\BotApi::setMessageReaction
api method - Add
\TelegramBot\Api\BotApi::deleteMessages
api method - Add
\TelegramBot\Api\BotApi::copyMessages
api method - Add
\TelegramBot\Api\BotApi::forwardMessages
api method - Add
\TelegramBot\Api\BotApi::getUserChatBoosts
api method
- Deprecate
reply_to_message_id
andallow_sending_without_reply
parameters to\TelegramBot\Api\BotApi
methods. Usereply_parameters
instead. - Deprecate
disable_web_page_preview
parameter to\TelegramBot\Api\BotApi
methods. Uselink_preview_options
instead.
- Add missing
protect_content
andallow_sending_without_reply
parameters to\TelegramBot\Api\BotApi
methods - Add support
attach://<file_attach_name>
in\TelegramBot\Api\BotApi
methodssendMediaGroup
,createNewStickerSet
,addStickerToSet
,editMessageMedia
- Rename
thumb
tothumbnail
parameter inAnimation
,Document
,Sticker
,StickerSet
,Video
,VideoNote
types - Rename
thumb_*
tothumbnail_*
parameter inInline/QueryResult
types - Add missing phpDoc for
$replyMarkup
parameters - Fix phpDoc for
\TelegramBot\Api\BotApi::setWebhook
$allowedUpdates
parameter. Automatically serialize if array passed - Fix phpDoc for
\TelegramBot\Api\Types\Message::$newChatMembers
- Add
\TelegramBot\Api\BotApi::getChatMemberCount
method - Add
\TelegramBot\Api\BotApi::banChatMember
method - Add
$messageId
to\TelegramBot\Api\BotApi::unpinChatMessage
- Add
\TelegramBot\Api\Types\ForceReply::$inputFieldPlaceholder
property
- Deprecate using
thumb*
methods in\TelegramBot\Api\BotApi
- Deprecate method
\TelegramBot\Api\BotApi::setStickerSetThumb
. Use\TelegramBot\Api\BotApi::setStickerSetThumbnail
instead - Deprecate
\TelegramBot\Api\Types\ReplyKeyboardHide
class - Deprecate
\TelegramBot\Api\BotApi::getChatMembersCount
. Use\TelegramBot\Api\BotApi::getChatMemberCount
instead - Deprecate
\TelegramBot\Api\BotApi::kickChatMember
. Use\TelegramBot\Api\BotApi::banChatMember
instead
- Add
\TelegramBot\Api\Types\Venue
mapping (foursquare_type
,google_place_id
,google_place_type
) - Add
scope
andlanguageCode
parameters to\TelegramBot\Api\BotApi::setMyCommands
- Add WebApp support:
\TelegramBot\Api\BotApi::answerWebAppQuery
method and\TelegramBot\Api\Types\Message::$webAppData
property - Add
\TelegramBot\Api\Types\ReplyKeyboardMarkup::$isPersistent
property - Add
\TelegramBot\Api\Types\ReplyKeyboardMarkup::$inputFieldPlaceholder
property
- Fix
\TelegramBot\Api\Collection\Collection::addItem
max count constraint (#333) - Fix
\TelegramBot\Api\Types\StickerSet
mapping - Fix
\TelegramBot\Api\BotApi::copyMessage
not returning\TelegramBot\Api\Types\MessageId
- Fix new
$messageThreadId
parameter in\TelegramBot\Api\BotApi
methods placed not in the end of the list of parameters
\TelegramBot\Api\BotApi::getMyCommands
now returns instance\TelegramBot\Api\Types\ArrayOfBotCommand
instead of\TelegramBot\Api\Types\BotCommand
array\TelegramBot\Api\BotApi::setMyCommands
now accepts instance of\TelegramBot\Api\Types\ArrayOfBotCommand
instead of\TelegramBot\Api\Types\BotCommand
array
- Deprecate
\TelegramBot\Api\Botan
class - Deprecate
$trackerToken
parameter in\TelegramBot\Api\BotApi::__construct
- Deprecate
$trackerToken
parameter in\TelegramBot\Api\Events\EventCollection::__construct
- Deprecate
\TelegramBot\Api\Types\PollAnswer::getFrom
use\TelegramBot\Api\Types\PollAnswer::getUser
instead - Deprecate passing array of BotCommand to
\TelegramBot\Api\BotApi::setMyCommands
. Use\TelegramBot\Api\Types\ArrayOfBotCommand
instead