Releases: phptg/bot-api
Releases · phptg/bot-api
0.21.1
Telegram Bot API 10.1 support 🎉
- New #200: Add
RichTextinterface and 25 rich text types:RichTextBold,RichTextItalic,RichTextUnderline,
RichTextStrikethrough,RichTextSpoiler,RichTextDateTime,RichTextTextMention,RichTextSubscript,
RichTextSuperscript,RichTextMarked,RichTextCode,RichTextCustomEmoji,RichTextMathematicalExpression,
RichTextUrl,RichTextEmailAddress,RichTextPhoneNumber,RichTextBankCardNumber,RichTextMention,
RichTextHashtag,RichTextCashtag,RichTextBotCommand,RichTextAnchor,RichTextAnchorLink,
RichTextReference,RichTextReferenceLink. - New #200: Add
RichBlockCaption,RichBlockTableCell, andRichBlockListItemtypes. - New #200: Add
RichBlockinterface and 21 rich block types:RichBlockParagraph,RichBlockSectionHeading,
RichBlockPreformatted,RichBlockFooter,RichBlockDivider,RichBlockMathematicalExpression,
RichBlockAnchor,RichBlockList,RichBlockBlockQuotation,RichBlockPullQuotation,RichBlockCollage,
RichBlockSlideshow,RichBlockTable,RichBlockDetails,RichBlockMap,RichBlockAnimation,
RichBlockAudio,RichBlockPhoto,RichBlockVideo,RichBlockVoiceNote,RichBlockThinking. - New #200: Add
RichMessagetype. - New #200: Add
InputRichMessageandInputRichMessageContenttypes. - New #200: Add
SendRichMessageandSendRichMessageDraftmethods. - New #200: Add
richMessageparameter toEditMessageTextmethod. - New #200: Add
richMessagefield toMessagetype. - New #200: Add
supportsJoinRequestQueriesfield toUsertype. - New #200: Add
guardBotfield toChatFullInfotype. - New #200: Add
queryIdfield toChatJoinRequesttype. - New #200: Add
AnswerChatJoinRequestQueryandSendChatJoinRequestWebAppmethods. - New #200: Add
Linktype. - New #200: Add
linkfield toPollMediatype. - New #200: Add
InputMediaLinktype. - Enh #200: Make
textparameter ofEditMessageTextmethod optional.
0.21
Telegram Bot API 10.0 support 🎉
- New #199: Add
supportsGuestQueriesfield toUsertype. - New #199: Add
guestQueryId,guestBotCallerUserandguestBotCallerChatfields toMessagetype. - New #199: Add
guestMessagefield toUpdatetype. - New #199: Add
SentGuestMessagetype. - New #199: Add
AnswerGuestQuerymethod. - New #199: Add
canReactToMessagesfield toChatMemberRestrictedandChatPermissionstypes. - New #199: Add
returnBotsparameter toGetChatAdministratorsmethod. - New #199: Add
DeleteAllMessageReactionsmethod. - New #199: Add
DeleteMessageReactionmethod. - New #199: Add
InputMediaSticker,InputMediaVenue,InputMediaLocationandInputMediaLivePhototypes. - New #199: Add
PollMediaandLivePhototype. - New #199: Add
explanationMedia,media,membersOnlyandcountryCodesfields toPolltype. - New #199: Add
mediafield toPollOptiontype. - New #199: Add
InputPollMediaandInputPollOptionMediatypes. - New #199: Add
live_photofield toMessageandExternalReplyInfotypes. - New #199: Add
SendLivePhotomethod. - New #199: Add
PaidMediaLivePhototype. - New #199: Add
InputPaidMediaLivePhototype. - New #199: Add
explanationMedia,media,membersOnlyandcountryCodesparameters toSendPollmethod. - New #199: Add
mediafield toInputPollOptiontype. - New #199: Add
BotAccessSettingstype. - New #199: Add
GetManagedBotAccessSettingsmethod. - New #199: Add
SetManagedBotAccessSettingsmethod. - New #199: Add
GetUserPersonalChatMessagesmethod. - Chg #199:
textparameter inSendMessageDraftmethod is now optional. - Enh #199:
SendMediaGroupmethod now supportsInputMediaLivePhototype.
0.20
0.19
- New #195: Add
InputFile::filename()andInputFile::extension()methods. - Chg #195: Remove
InputFile::fromLocalFile()method, pass a file path directly toInputFileconstructor. - Chg #195: Remove
ResourceReaderInterfaceandNativeResourceReader. - Chg #195: Remove
InputFileData. - Chg #195:
MimeTypeResolverInterface::resolve()now acceptsInputFileinstead ofInputFileData. - Chg #195: Remove
$resourceReadersconstructor parameter fromCurlTransportandNativeTransport. - Enh #194: Remove deprecated
curl_close()call inCurlTransport. - Enh #195:
CurlTransportnow usesCURLFilefor file-path resources, avoiding loading file content into memory.
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.16
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.