Releases: phptg/bot-api
Releases · phptg/bot-api
0.18.1
0.18
Telegram Bot API 9.6 support 🎉
- Enh #190: Open file in binary mode in
InputFile::fromLocalFile()method. - New #191: Add
GetManagedBotToken,ReplaceManagedBotTokenandSavePreparedKeyboardButtonmethods. - New #191: Add
KeyboardButtonRequestManagedBot,ManagedBotCreated,ManagedBotUpdated,PreparedKeyboardButton,PollOptionAddedandPollOptionDeletedtypes. - New #191: Add
requestManagedBotfield toKeyboardButtontype. - New #191: Add
canManageBotsfield toUsertype. - New #191: Add
managedBotCreated,pollOptionAdded,pollOptionDeletedandreplyToPollOptionIdfield toMessagetype. - New #191: Add
managedBotfield toUpdatetype. - Chg #191: Replace
correctOptionIdfield withcorrectOptionIdsinPolltype. - New #191: Add
allowsRevoting,descriptionanddescriptionEntitiesfields toPolltype. - Chg #191: Replace
correctOptionIdparameter withcorrectOptionIdsinSendPollmethod. - New #191: Add
allowsRevoting,shuffleOptions,allowAddingOptions,hideResultsUntilCloses,description,descriptionParseModeanddescriptionEntitiesparameters toSendPollmethod. - New #191: Add
persistentId,addedByUser,addedByChatandadditionDatefields toPollOptiontype. - New #191: Add
optionPersistentIdsfield toPollAnswertype. - New #191: Add
pollOptionIdfield toReplyParameterstype.
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.