Skip to content

Releases: phptg/bot-api

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.

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.