Skip to content

Releases: phptg/bot-api

0.21.1

12 Jun 05:49
fde47ff

Choose a tag to compare

Telegram Bot API 10.1 support 🎉

  • New #200: Add RichText interface 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, and RichBlockListItem types.
  • New #200: Add RichBlock interface 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 RichMessage type.
  • New #200: Add InputRichMessage and InputRichMessageContent types.
  • New #200: Add SendRichMessage and SendRichMessageDraft methods.
  • New #200: Add richMessage parameter to EditMessageText method.
  • New #200: Add richMessage field to Message type.
  • New #200: Add supportsJoinRequestQueries field to User type.
  • New #200: Add guardBot field to ChatFullInfo type.
  • New #200: Add queryId field to ChatJoinRequest type.
  • New #200: Add AnswerChatJoinRequestQuery and SendChatJoinRequestWebApp methods.
  • New #200: Add Link type.
  • New #200: Add link field to PollMedia type.
  • New #200: Add InputMediaLink type.
  • Enh #200: Make text parameter of EditMessageText method optional.

0.21

09 May 12:08
f9d3448

Choose a tag to compare

Telegram Bot API 10.0 support 🎉

  • New #199: Add supportsGuestQueries field to User type.
  • New #199: Add guestQueryId, guestBotCallerUser and guestBotCallerChat fields to Message type.
  • New #199: Add guestMessage field to Update type.
  • New #199: Add SentGuestMessage type.
  • New #199: Add AnswerGuestQuery method.
  • New #199: Add canReactToMessages field to ChatMemberRestricted and ChatPermissions types.
  • New #199: Add returnBots parameter to GetChatAdministrators method.
  • New #199: Add DeleteAllMessageReactions method.
  • New #199: Add DeleteMessageReaction method.
  • New #199: Add InputMediaSticker, InputMediaVenue, InputMediaLocation and InputMediaLivePhoto types.
  • New #199: Add PollMedia and LivePhoto type.
  • New #199: Add explanationMedia, media, membersOnly and countryCodes fields to Poll type.
  • New #199: Add media field to PollOption type.
  • New #199: Add InputPollMedia and InputPollOptionMedia types.
  • New #199: Add live_photo field to Message and ExternalReplyInfo types.
  • New #199: Add SendLivePhoto method.
  • New #199: Add PaidMediaLivePhoto type.
  • New #199: Add InputPaidMediaLivePhoto type.
  • New #199: Add explanationMedia, media, membersOnly and countryCodes parameters to SendPoll method.
  • New #199: Add media field to InputPollOption type.
  • New #199: Add BotAccessSettings type.
  • New #199: Add GetManagedBotAccessSettings method.
  • New #199: Add SetManagedBotAccessSettings method.
  • New #199: Add GetUserPersonalChatMessages method.
  • Chg #199: text parameter in SendMessageDraft method is now optional.
  • Enh #199: SendMediaGroup method now supports InputMediaLivePhoto type.

0.20

26 Apr 16:14
c40beb6

Choose a tag to compare

  • Chg #197: $data parameter type in TransportInterface::postWithFiles() changed from array<string, scalar>
    to array<string, string>: non-string values are passed already JSON-encoded.

0.19

18 Apr 12:07
d040eab

Choose a tag to compare

  • New #195: Add InputFile::filename() and InputFile::extension() methods.
  • Chg #195: Remove InputFile::fromLocalFile() method, pass a file path directly to InputFile constructor.
  • Chg #195: Remove ResourceReaderInterface and NativeResourceReader.
  • Chg #195: Remove InputFileData.
  • Chg #195: MimeTypeResolverInterface::resolve() now accepts InputFile instead of InputFileData.
  • Chg #195: Remove $resourceReaders constructor parameter from CurlTransport and NativeTransport.
  • Enh #194: Remove deprecated curl_close() call in CurlTransport.
  • Enh #195: CurlTransport now uses CURLFile for file-path resources, avoiding loading file content into memory.

0.18.1

05 Apr 05:35
3f60f48

Choose a tag to compare

  • Bug #192: Add missed certificate parameter to SetWebhook method.

0.18

04 Apr 08:14
97c2a68

Choose a tag to compare

Telegram Bot API 9.6 support 🎉

  • Enh #190: Open file in binary mode in InputFile::fromLocalFile() method.
  • New #191: Add GetManagedBotToken, ReplaceManagedBotToken and SavePreparedKeyboardButton methods.
  • New #191: Add KeyboardButtonRequestManagedBot, ManagedBotCreated, ManagedBotUpdated, PreparedKeyboardButton, PollOptionAdded and PollOptionDeleted types.
  • New #191: Add requestManagedBot field to KeyboardButton type.
  • New #191: Add canManageBots field to User type.
  • New #191: Add managedBotCreated, pollOptionAdded, pollOptionDeleted and replyToPollOptionId field to Message type.
  • New #191: Add managedBot field to Update type.
  • Chg #191: Replace correctOptionId field with correctOptionIds in Poll type.
  • New #191: Add allowsRevoting, description and descriptionEntities fields to Poll type.
  • Chg #191: Replace correctOptionId parameter with correctOptionIds in SendPoll method.
  • New #191: Add allowsRevoting, shuffleOptions, allowAddingOptions, hideResultsUntilCloses, description, descriptionParseMode and descriptionEntities parameters to SendPoll method.
  • New #191: Add persistentId, addedByUser, addedByChat and additionDate fields to PollOption type.
  • New #191: Add optionPersistentIds field to PollAnswer type.
  • New #191: Add pollOptionId field to ReplyParameters type.

0.17

01 Mar 13:41
603ff1d

Choose a tag to compare

Telegram Bot API 9.5 support 🎉

  • New #188: Add unixTime and dateTimeFormat fields to MessageEntity type.
  • New #188: Add DATE_TIME constant to MessageEntityType.
  • New #188: Add tag field to ChatMemberMember and ChatMemberRestricted types.
  • New #188: Add canEditTag field to ChatMemberRestricted and ChatPermissions types.
  • New #188: Add SetChatMemberTag method.
  • New #188: Add canManageTags field to ChatMemberAdministrator and ChatAdministratorRights types.
  • New #188: Add canManageTags parameter to PromoteChatMember method.
  • New #188: Add senderTag field to Message type.

0.16

28 Feb 18:28
e9934f1

Choose a tag to compare

Remove PSR dependencies in favor phptg/transport-psr package.

  • Chg #186: Remove PsrTransport, PsrWebhookResponseFactory and StreamResourceReader classes.
  • Chg #186: Remove Update::fromServerRequest() method.
  • Chg #186: Remove PSR composer dependencies.

0.15

28 Feb 18:06
87afdd3

Choose a tag to compare

  • Chg #187: Change TransportInterface::downloadFile() signature — remove $stream parameter, method now returns
    resource (readable stream) instead of string.
  • Chg #187: TelegramBotApi::downloadFile() now returns DownloadedFile instead of string.
  • Chg #187: Remove TelegramBotApi::downloadFileTo() method.
  • Chg #187: Remove TransportInterface::downloadFileTo() method.
  • Chg #187: Move SaveFileException from Phptg\BotApi\Transport to Phptg\BotApi namespace.

0.14.1

09 Feb 20:48
c295ae1

Choose a tag to compare

Telegram Bot API 9.4 support 🎉

  • New #186: Add SetMyProfilePhoto, RemoveMyProfilePhoto and GetUserProfileAudios methods.
  • New #186: Add ChatOwnerLeft, ChatOwnerChanged, VideoQuality and UserProfileAudios types.
  • New #186: Add allowsUsersToCreateTopics field to User type.
  • New #186: Add iconCustomEmojiId and style fields to KeyboardButton type.
  • New #186: Add iconCustomEmojiId and style fields to InlineKeyboardButton type.
  • New #186: Add chatOwnerLeft and chatOwnerChanged fields to Message type.
  • New #186: Add qualities field to Video type.
  • New #186: Add firstProfileAudio field to ChatFullInfo type.
  • New #186: Add rarity field to UniqueGiftModel type.
  • New #186: Add isBurned field to UniqueGift type.