Skip to content

Releases: phptg/bot-api

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.

0.9.3

22 Oct 19:49
c5d8000

Choose a tag to compare

  • New #167: Add WebhookResponse class that represents method as response on webhook.
  • New #167: Add webhook response factories PsrWebhookResponseFactory and JsonWebhookResponseFactory.

0.9.2

16 Aug 14:51
e5d6215

Choose a tag to compare

Telegram Bot API 9.2 support 🎉

  • New #164: Add checklistTaskId field to ReplyParameters type.
  • New #164: Add publisherChat field to Gift and UniqueGift types.
  • New #164: Add isDirectMessages field to Chat and ChatFullInfo types.
  • New #164: Add parentChat field to ChatFullInfo type.
  • New #164: Add directMessagesTopicId parameter to sendMessage, sendPhoto, sendVideo, sendAnimation,
    sendAudio, sendDocument, sendPaidMedia, sendSticker, sendVideoNote, sendVoice, sendLocation,
    sendVenue, sendContact, sendDice, sendInvoice, sendMediaGroup, copyMessage, copyMessages,
    forwardMessage and forwardMessages methods.
  • New #164: Add suggestedPostParameters parameter to sendMessage, sendPhoto, sendVideo, sendAnimation,
    sendAudio, sendDocument, sendPaidMedia, sendSticker, sendVideoNote, sendVoice, sendLocation,
    sendVenue, sendContact, sendDice, sendInvoice, copyMessage and forwardMessage methods.
  • New #164: Add messageThreadId parameter to SendPaidMedia method.
  • New #164: Add approveSuggestedPost and declineSuggestedPost methods.
  • New #164: Add canManageDirectMessages field to ChatMemberAdministrator and ChatAdministratorRights types.
  • New #164: Add canManageDirectMessages parameter to promoteChatMember method.
  • New #164: Add DirectMessagesTopic, SuggestedPostPrice, SuggestedPostParameters, SuggestedPostInfo,
    SuggestedPostApproved, SuggestedPostApprovalFailed, SuggestedPostDeclined, SuggestedPostPaid and
    SuggestedPostRefunded types.
  • New #164: Add replyToChecklistTaskId, directMessagesTopic, isPaidPost, suggestedPostInfo,
    suggestedPostApproved, suggestedPostApprovalFailed, suggestedPostDeclined, suggestedPostPaid and
    suggestedPostRefunded fields to Message type.

0.9.1

04 Jul 07:45
84929bc

Choose a tag to compare

Telegram Bot API 9.1 support and new native transport 🎉

  • Chg #160: Change PHP constraint in composer.json from php to php-64bit.
  • New #155: Add NativeTransport that used native file_get_contents() and file_put_contents() functions.
  • New #162: Add ChecklistTask, Checklist, InputChecklistTask, InputChecklist, ChecklistTasksDone,
    ChecklistTasksAdded and DirectMessagePriceChanged types.
  • New #162: Add checklist, checklistTasksDone, checklistTasksAdded and directMessagePriceChanged fields to
    Message type.
  • New #162: Add checklist field to ExternalReplyInfo type.
  • New #162: Add sendChecklist, editMessageChecklist and getMyStarBalance methods.
  • New #162: Add nextTransferDate field to OwnedGiftUnique type.
  • New #162: Add nextTransferDate and lastResaleStarCount fields to UniqueGiftInfo type.

0.9

12 Apr 18:24
f22eec9

Choose a tag to compare

0.9

Telegram Bot API 9.0 support 🎉

  • New #152: Add downloadFile() and downloadFileTo() methods to TelegramBotApi.
  • 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, UniqueGiftSymbol and
    UniqueGift types.
  • New #156: Add DeleteStory, GetBusinessAccountGifts, ConvertGiftToStars, UpgradeGift, TransferGift,
    PostStory, EditStory, GiftPremiumSubscription, ReadBusinessMessage, DeleteBusinessMessages,
    SetBusinessAccountName, SetBusinessAccountUsername, SetBusinessAccountBio, SetBusinessAccountProfilePhoto,
    RemoveBusinessAccountProfilePhoto, SetBusinessAccountGiftSettings, GetBusinessAccountStarBalance and
    TransferBusinessAccountStars methods.
  • New #156: Add paidMessagePriceChanged, paidStarCount, gift and uniqueGift fields to Message type.
  • New #156: Add premiumSubscriptionDuration and transactionType fields to TransactionPartnerUser type.
  • Chg #152: Add downloadFile() and downloadFileTo() methods to TransportInterface.
  • Chg #152: Move CurlTransport from Vjik\TelegramBot\Api\Transport\Curl to Vjik\TelegramBot\Api\Transport.
  • Chg #154: TelegramBotApi::makeFileUrl() always returns a string and throw LogicException if the file path is not
    specified in File object.
  • Chg #156: In BusinessConnection type replace canReply field with rights field of BusinessBotRights type.
  • Chg #156: In ChatFullInfo type replace canSendGift field with acceptedGiftTypes field.
  • Enh #151: Add SensitiveParameter attribute to token parameters in TelegramBotApi methods.