Releases: phptg/bot-api
Releases · phptg/bot-api
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.
0.9.1
Telegram Bot API 9.1 support and new native transport 🎉
- Chg #160: Change PHP constraint in
composer.jsonfromphptophp-64bit. - New #155: Add
NativeTransportthat used nativefile_get_contents()andfile_put_contents()functions. - New #162: Add
ChecklistTask,Checklist,InputChecklistTask,InputChecklist,ChecklistTasksDone,
ChecklistTasksAddedandDirectMessagePriceChangedtypes. - New #162: Add
checklist,checklistTasksDone,checklistTasksAddedanddirectMessagePriceChangedfields to
Messagetype. - New #162: Add
checklistfield toExternalReplyInfotype. - New #162: Add
sendChecklist,editMessageChecklistandgetMyStarBalancemethods. - New #162: Add
nextTransferDatefield toOwnedGiftUniquetype. - New #162: Add
nextTransferDateandlastResaleStarCountfields toUniqueGiftInfotype.
0.9
Telegram Bot API 9.0 support 🎉
- New #152: Add
downloadFile()anddownloadFileTo()methods toTelegramBotApi. - New #156: Add
AcceptedGiftTypes,BusinessBotRights,GiftInfo,InputProfilePhotoAnimated,
InputProfilePhotoStatic,InputProfilePhoto,InputStoryContentPhoto,InputStoryContentVideo,
InputStoryContent,LocationAddress,OwnedGiftRegular,OwnedGiftUnique,OwnedGift,OwnedGifts,
PaidMessagePriceChanged,StarAmount,StoryAreaPosition,StoryAreaTypeLink,StoryAreaTypeLocation,
StoryAreaTypeSuggestedReaction,StoryAreaTypeUniqueGift,StoryAreaTypeWeather,StoryAreaType,StoryArea,
UniqueGiftBackdropColors,UniqueGiftBackdrop,UniqueGiftInfo,UniqueGiftModel,UniqueGiftSymboland
UniqueGifttypes. - New #156: Add
DeleteStory,GetBusinessAccountGifts,ConvertGiftToStars,UpgradeGift,TransferGift,
PostStory,EditStory,GiftPremiumSubscription,ReadBusinessMessage,DeleteBusinessMessages,
SetBusinessAccountName,SetBusinessAccountUsername,SetBusinessAccountBio,SetBusinessAccountProfilePhoto,
RemoveBusinessAccountProfilePhoto,SetBusinessAccountGiftSettings,GetBusinessAccountStarBalanceand
TransferBusinessAccountStarsmethods. - New #156: Add
paidMessagePriceChanged,paidStarCount,giftanduniqueGiftfields toMessagetype. - New #156: Add
premiumSubscriptionDurationandtransactionTypefields toTransactionPartnerUsertype. - Chg #152: Add
downloadFile()anddownloadFileTo()methods toTransportInterface. - Chg #152: Move
CurlTransportfromVjik\TelegramBot\Api\Transport\CurltoVjik\TelegramBot\Api\Transport. - Chg #154:
TelegramBotApi::makeFileUrl()always returns a string and throwLogicExceptionif the file path is not
specified inFileobject. - Chg #156: In
BusinessConnectiontype replacecanReplyfield withrightsfield ofBusinessBotRightstype. - Chg #156: In
ChatFullInfotype replacecanSendGiftfield withacceptedGiftTypesfield. - Enh #151: Add
SensitiveParameterattribute to token parameters inTelegramBotApimethods.