Skip to content

Releases: phptg/bot-api

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.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.

0.14

07 Feb 08:24
3dd0589

Choose a tag to compare

  • New #182: Introduce resource readers that handle reading content from different types of resources stored in
    InputFile. Add ResourceReaderInterface and built-in implementations: NativeResourceReader for native PHP
    resources and StreamResourceReader for PSR-7 streams.
  • New #182: Add resourceReaders constructor parameter to CurlTransport and NativeTransport.
  • Chg #182: Change MimeTypeResolverInterface::resolve() signature to accept InputFileData instead of InputFile.
  • Chg #183: Change $mimeTypeResolver parameter in NativeTransport constructor from nullable to non-nullable.

0.13

18 Jan 18:01
5874a66

Choose a tag to compare

  • Bug #180: Make rights property optional in BusinessConnection type.
  • Chg #180: Change order of BusinessConnection constructor parameters.

0.12

01 Jan 08:27
1464f58

Choose a tag to compare

Telegram Bot API 9.3 support 🎉

  • New #177: Add hasTopicsEnabled field to User type.
  • New #177: Add isNameImplicit field to ForumTopic and ForumTopicCreated types.
  • New #177: Add giftUpgradeSent field to Message type.
  • New #177: Add giftId, isPremium, isFromBlockchain and colors fields to UniqueGift type.
  • New #177: Add isPremium, hasColors, personalTotalCount, personalRemainingCount, background and
    uniqueGiftVariantCount fields to Gift type.
  • New #177: Add isUpgradeSeparate and uniqueGiftNumber fields to GiftInfo and OwnedGiftRegular types.
  • New #177: Add giftsFromChannels field to AcceptedGiftTypes type.
  • New #177: Add rating, uniqueGiftColors and paidMessageStarCount fields to ChatFullInfo type.
  • New #177: Add UniqueGiftColors, GiftBackground and UserRating types.
  • New #177: Add SendMessageDraft, getUserGifts, getChatGifts and repostStory methods.
  • New #177: Add excludeFromBlockchain parameter to getBusinessAccountGifts method.
  • New #177: Add messageEffectId parameter to forwardMessage and copyMessage methods.
  • New #177: Add completedByChat field to ChecklistTask type.
  • Chg #177: Replace lastResaleStarCount field with lastResaleCurrency and lastResaleAmount fields in
    UniqueGiftInfo type.
  • Chg #177: Replace excludeLimited parameter with excludeLimitedUpgradable and excludeLimitedNonUpgradable
    parameters in getBusinessAccountGifts method.

0.11

29 Dec 15:16
df6a726

Choose a tag to compare

  • Chg #171: Simplify TransportInterface implementations by replacing single send() method with specific methods: get(), post(), and postWithFiles().
  • Chg #175: Change PHP constraint in composer.json to 8.2 - 8.5.

0.10

01 Nov 12:59
a72bcd3

Choose a tag to compare

  • Chg #172: Rename package from vjik/telegram-bot-api to phptg/bot-api and change namespace Vjik\TelegramBot\Api to Phptg\BotApi.
  • Enh #170: Improve CurlTransport performance by sharing data between cURL handles.