Releases: phptg/bot-api
Releases · phptg/bot-api
0.17
Telegram Bot API 9.5 support 🎉
- New #188: Add
unixTimeanddateTimeFormatfields toMessageEntitytype. - New #188: Add
DATE_TIMEconstant toMessageEntityType. - New #188: Add
tagfield toChatMemberMemberandChatMemberRestrictedtypes. - New #188: Add
canEditTagfield toChatMemberRestrictedandChatPermissionstypes. - New #188: Add
SetChatMemberTagmethod. - New #188: Add
canManageTagsfield toChatMemberAdministratorandChatAdministratorRightstypes. - New #188: Add
canManageTagsparameter toPromoteChatMembermethod. - New #188: Add
senderTagfield toMessagetype.
0.15
- Chg #187: Change
TransportInterface::downloadFile()signature — remove$streamparameter, method now returns
resource(readable stream) instead ofstring. - Chg #187:
TelegramBotApi::downloadFile()now returnsDownloadedFileinstead ofstring. - Chg #187: Remove
TelegramBotApi::downloadFileTo()method. - Chg #187: Remove
TransportInterface::downloadFileTo()method. - Chg #187: Move
SaveFileExceptionfromPhptg\BotApi\TransporttoPhptg\BotApinamespace.
0.14.1
Telegram Bot API 9.4 support 🎉
- New #186: Add
SetMyProfilePhoto,RemoveMyProfilePhotoandGetUserProfileAudiosmethods. - New #186: Add
ChatOwnerLeft,ChatOwnerChanged,VideoQualityandUserProfileAudiostypes. - New #186: Add
allowsUsersToCreateTopicsfield toUsertype. - New #186: Add
iconCustomEmojiIdandstylefields toKeyboardButtontype. - New #186: Add
iconCustomEmojiIdandstylefields toInlineKeyboardButtontype. - New #186: Add
chatOwnerLeftandchatOwnerChangedfields toMessagetype. - New #186: Add
qualitiesfield toVideotype. - New #186: Add
firstProfileAudiofield toChatFullInfotype. - New #186: Add
rarityfield toUniqueGiftModeltype. - New #186: Add
isBurnedfield toUniqueGifttype.
0.14
- New #182: Introduce resource readers that handle reading content from different types of resources stored in
InputFile. AddResourceReaderInterfaceand built-in implementations:NativeResourceReaderfor native PHP
resources andStreamResourceReaderfor PSR-7 streams. - New #182: Add
resourceReadersconstructor parameter toCurlTransportandNativeTransport. - Chg #182: Change
MimeTypeResolverInterface::resolve()signature to acceptInputFileDatainstead ofInputFile. - Chg #183: Change
$mimeTypeResolverparameter inNativeTransportconstructor from nullable to non-nullable.
0.13
0.12
Telegram Bot API 9.3 support 🎉
- New #177: Add
hasTopicsEnabledfield toUsertype. - New #177: Add
isNameImplicitfield toForumTopicandForumTopicCreatedtypes. - New #177: Add
giftUpgradeSentfield toMessagetype. - New #177: Add
giftId,isPremium,isFromBlockchainandcolorsfields toUniqueGifttype. - New #177: Add
isPremium,hasColors,personalTotalCount,personalRemainingCount,backgroundand
uniqueGiftVariantCountfields toGifttype. - New #177: Add
isUpgradeSeparateanduniqueGiftNumberfields toGiftInfoandOwnedGiftRegulartypes. - New #177: Add
giftsFromChannelsfield toAcceptedGiftTypestype. - New #177: Add
rating,uniqueGiftColorsandpaidMessageStarCountfields toChatFullInfotype. - New #177: Add
UniqueGiftColors,GiftBackgroundandUserRatingtypes. - New #177: Add
SendMessageDraft,getUserGifts,getChatGiftsandrepostStorymethods. - New #177: Add
excludeFromBlockchainparameter togetBusinessAccountGiftsmethod. - New #177: Add
messageEffectIdparameter toforwardMessageandcopyMessagemethods. - New #177: Add
completedByChatfield toChecklistTasktype. - Chg #177: Replace
lastResaleStarCountfield withlastResaleCurrencyandlastResaleAmountfields in
UniqueGiftInfotype. - Chg #177: Replace
excludeLimitedparameter withexcludeLimitedUpgradableandexcludeLimitedNonUpgradable
parameters ingetBusinessAccountGiftsmethod.
0.11
0.10
0.9.3
0.9.2
Telegram Bot API 9.2 support 🎉
- New #164: Add
checklistTaskIdfield toReplyParameterstype. - New #164: Add
publisherChatfield toGiftandUniqueGifttypes. - New #164: Add
isDirectMessagesfield toChatandChatFullInfotypes. - New #164: Add
parentChatfield toChatFullInfotype. - New #164: Add
directMessagesTopicIdparameter tosendMessage,sendPhoto,sendVideo,sendAnimation,
sendAudio,sendDocument,sendPaidMedia,sendSticker,sendVideoNote,sendVoice,sendLocation,
sendVenue,sendContact,sendDice,sendInvoice,sendMediaGroup,copyMessage,copyMessages,
forwardMessageandforwardMessagesmethods. - New #164: Add
suggestedPostParametersparameter tosendMessage,sendPhoto,sendVideo,sendAnimation,
sendAudio,sendDocument,sendPaidMedia,sendSticker,sendVideoNote,sendVoice,sendLocation,
sendVenue,sendContact,sendDice,sendInvoice,copyMessageandforwardMessagemethods. - New #164: Add
messageThreadIdparameter toSendPaidMediamethod. - New #164: Add
approveSuggestedPostanddeclineSuggestedPostmethods. - New #164: Add
canManageDirectMessagesfield toChatMemberAdministratorandChatAdministratorRightstypes. - New #164: Add
canManageDirectMessagesparameter topromoteChatMembermethod. - New #164: Add
DirectMessagesTopic,SuggestedPostPrice,SuggestedPostParameters,SuggestedPostInfo,
SuggestedPostApproved,SuggestedPostApprovalFailed,SuggestedPostDeclined,SuggestedPostPaidand
SuggestedPostRefundedtypes. - New #164: Add
replyToChecklistTaskId,directMessagesTopic,isPaidPost,suggestedPostInfo,
suggestedPostApproved,suggestedPostApprovalFailed,suggestedPostDeclined,suggestedPostPaidand
suggestedPostRefundedfields toMessagetype.