Releases: vjik/telegram-bot-api
Releases · vjik/telegram-bot-api
0.9.2
Telegram Bot API 9.2 support 🎉
- New #164: Add
checklistTaskId
field toReplyParameters
type. - New #164: Add
publisherChat
field toGift
andUniqueGift
types. - New #164: Add
isDirectMessages
field toChat
andChatFullInfo
types. - New #164: Add
parentChat
field toChatFullInfo
type. - New #164: Add
directMessagesTopicId
parameter tosendMessage
,sendPhoto
,sendVideo
,sendAnimation
,
sendAudio
,sendDocument
,sendPaidMedia
,sendSticker
,sendVideoNote
,sendVoice
,sendLocation
,
sendVenue
,sendContact
,sendDice
,sendInvoice
,sendMediaGroup
,copyMessage
,copyMessages
,
forwardMessage
andforwardMessages
methods. - New #164: Add
suggestedPostParameters
parameter tosendMessage
,sendPhoto
,sendVideo
,sendAnimation
,
sendAudio
,sendDocument
,sendPaidMedia
,sendSticker
,sendVideoNote
,sendVoice
,sendLocation
,
sendVenue
,sendContact
,sendDice
,sendInvoice
,copyMessage
andforwardMessage
methods. - New #164: Add
messageThreadId
parameter toSendPaidMedia
method. - New #164: Add
approveSuggestedPost
anddeclineSuggestedPost
methods. - New #164: Add
canManageDirectMessages
field toChatMemberAdministrator
andChatAdministratorRights
types. - New #164: Add
canManageDirectMessages
parameter topromoteChatMember
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 toMessage
type.
0.9.1
Telegram Bot API 9.1 support and new native transport 🎉
- Chg #160: Change PHP constraint in
composer.json
fromphp
tophp-64bit
. - New #155: Add
NativeTransport
that used nativefile_get_contents()
andfile_put_contents()
functions. - New #162: Add
ChecklistTask
,Checklist
,InputChecklistTask
,InputChecklist
,ChecklistTasksDone
,
ChecklistTasksAdded
andDirectMessagePriceChanged
types. - New #162: Add
checklist
,checklistTasksDone
,checklistTasksAdded
anddirectMessagePriceChanged
fields to
Message
type. - New #162: Add
checklist
field toExternalReplyInfo
type. - New #162: Add
sendChecklist
,editMessageChecklist
andgetMyStarBalance
methods. - New #162: Add
nextTransferDate
field toOwnedGiftUnique
type. - New #162: Add
nextTransferDate
andlastResaleStarCount
fields toUniqueGiftInfo
type.
0.9
Telegram Bot API 9.0 support 🎉
- New #152: Add
downloadFile()
anddownloadFileTo()
methods toTelegramBotApi
. - 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
anduniqueGift
fields toMessage
type. - New #156: Add
premiumSubscriptionDuration
andtransactionType
fields toTransactionPartnerUser
type. - Chg #152: Add
downloadFile()
anddownloadFileTo()
methods toTransportInterface
. - Chg #152: Move
CurlTransport
fromVjik\TelegramBot\Api\Transport\Curl
toVjik\TelegramBot\Api\Transport
. - Chg #154:
TelegramBotApi::makeFileUrl()
always returns a string and throwLogicException
if the file path is not
specified inFile
object. - Chg #156: In
BusinessConnection
type replacecanReply
field withrights
field ofBusinessBotRights
type. - Chg #156: In
ChatFullInfo
type replacecanSendGift
field withacceptedGiftTypes
field. - Enh #151: Add
SensitiveParameter
attribute to token parameters inTelegramBotApi
methods.
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
inTransportInterface::send()
method. - Enh #145: Make
$transport
inTelegramBotApi
optional (cURL transport will be used by default). - Enh #147: Use
SensitiveParameter
attribute to mark sensitive parameters.
0.7.1
Telegram Bot API 8.3 support 🎉
- New #142: Add
CurlTransport
. - New #144: Add
chatId
parameter toSendGift
method. - New #144: Add
canSendGift
field toChatFullInfo
type. - New #144: Add
TransactionPartnerChat
type. - New #144: Add
cover
andstartTimestamp
fields toVideo
,InputMediaVideo
andInputPaidMediaVideo
types. - New #144: Add
cover
andstartTimestamp
parameters toSendVideo
method. - New #144: Add
videoStartTimestamp
parameter toForwardMessage
andCopyMessage
methods.
0.7
- New #139: Add
RawValue
value processor. - Chg #139: Change result of
MethodInterface::getResultType()
toValueProcessorInterface
. - Chg #143: Change
FailResult::$errorCode
type toint|null
. - Enh #140: Extract core code from
TelegramBotApi
to internalApi
class. - Enh #136: Minor refactoring of
ObjectFactory
class. - Enh #138: Remove unused private properties in
PsrTransport
class.
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
toTransportInterface
and changesend()
method signature. - Chg #132: Rename
TelegramRequestWithResultPreparingInterface
toMethodInterface
. - Chg #132: Rename
RequestFileCollector
toFileCollector
and move to root namespace. - Chg #132: Rename
TelegramBotApi::send()
method tocall()
. - 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
Telegram Bot API 8.2 support 🎉