Skip to content

Releases: vjik/telegram-bot-api

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.

0.8

15 Feb 09:01
4ea18a3

Choose a tag to compare

0.8
  • New #148: Add TelegramBotApi::makeFileUrl() method.
  • Chg #145: Remove ApiUrlGenerator.
  • Chg #145: Move $token and $baseUrl parameters from transport classes (CurlTransport, PsrTransport) to
    TelegramBotApi.
  • Chg #145: Change $apiMethod parameter to $urlPath in TransportInterface::send() method.
  • Enh #145: Make $transport in TelegramBotApi optional (cURL transport will be used by default).
  • Enh #147: Use SensitiveParameter attribute to mark sensitive parameters.

0.7.1

12 Feb 18:34
cdb66e2

Choose a tag to compare

Telegram Bot API 8.3 support 🎉

  • New #142: Add CurlTransport.
  • New #144: Add chatId parameter to SendGift method.
  • New #144: Add canSendGift field to ChatFullInfo type.
  • New #144: Add TransactionPartnerChat type.
  • New #144: Add cover and startTimestamp fields to Video, InputMediaVideo and InputPaidMediaVideo types.
  • New #144: Add cover and startTimestamp parameters to SendVideo method.
  • New #144: Add videoStartTimestamp parameter to ForwardMessage and CopyMessage methods.

0.7

10 Feb 12:48
e5d336c

Choose a tag to compare

0.7
  • New #139: Add RawValue value processor.
  • Chg #139: Change result of MethodInterface::getResultType() to ValueProcessorInterface.
  • Chg #143: Change FailResult::$errorCode type to int|null.
  • Enh #140: Extract core code from TelegramBotApi to internal Api class.
  • Enh #136: Minor refactoring of ObjectFactory class.
  • Enh #138: Remove unused private properties in PsrTransport class.

0.6

24 Jan 14:08
5bd2d66

Choose a tag to compare

0.6
  • Chg #132: Rename definitions "telegram client" to "transport", "telegram response" to "api response" and
    "telegram request" to "method". Classes, namespaces, and variables rename accordingly.
  • Chg #132: Remove TelegramRequest.
  • Chg #132: Rename TelegramClientInterface to TransportInterface and change send() method signature.
  • Chg #132: Rename TelegramRequestWithResultPreparingInterface to MethodInterface.
  • Chg #132: Rename RequestFileCollector to FileCollector and move to root namespace.
  • Chg #132: Rename TelegramBotApi::send() method to call().
  • Chg #133: Remove JSON encoding of payload in log contexts.
  • Chg #133: Extract log context creating methods to separated internal class.
  • Enh #134: Remove dead code.

0.5

02 Jan 17:41
67527f8

Choose a tag to compare

0.5

Telegram Bot API 8.2 support 🎉

  • New #129: Add verifyUser, verifyChat, removeUserVerification and removeChatVerification methods.
  • New #129: Add upgradeStarCount field to Gift type.
  • New #129: Add payForUpgrade parameter to SendGift method.
  • Chg #129: Remove hideUrl field from InlineQueryResultArticle type.

0.4.7.1

18 Dec 11:29
d998207

Choose a tag to compare

  • Bug #128: Add a check for a seekable response body and rewind in PsrTelegramClient.

0.4.7

04 Dec 11:57
4face03

Choose a tag to compare

Telegram Bot API 8.1 support 🎉

  • New #126: Add nanostarAmount field to StarTransaction type.
  • New #126: Add TransactionPartnerAffiliateProgram type.
  • New #126: Add AffiliateInfo type.
  • New #126: Add affiliate field to TransactionPartnerUser type.