6.9 KiB
6.9 KiB
Change Log
All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
[0.40.0][0.40.0] - 2019-10-15
Added:
- Support Bot API v4.2: (by @kamikazechaser)
- Add methods: TelegramBot#sendPoll(), TelegramBot#stopPoll()
- Support events: poll
- Support Bot API v4.0: (by @kamikazechaser)
- Add methods: TelegramBot#editMessageMedia(), TelegramBot#sendAnimation()
- Support new message types: passport_data, animation
0.30.0 - 2017-12-21
Added:
- Support Bot API v3.5: (by @GochoMugo)
- Allow
provider_data
parameter in TelegramBot#sendInvoice - Add method TelegramBot#sendMediaGroup()
- Allow
- Support Bot API v3.4: (by @kamikazechaser)
- Add methods TelegramBot#editMessageLiveLocation, TelegramBot#stopMessageLiveLocation (#439)
- Add methods TelegramBot#setChatStickerSet, TelegramBot#deleteChatStickerSet (#440)
- Add methods:
- TelegramBot#getFileStream (#442) (by @GochoMugo, requested-by @Xaqron)
- Add options to TelegramBot#stopPolling() (by @GochoMugo)
- Add
metadata
argument inmessage
event (and friends e.g.text
,audio
, etc.) (#409) (by @jlsjonas, @GochoMugo) - Add forward-compatibility i.e. support future additional Telegram options (by @GochoMugo)
- Add support for Node.js v9 (by @GochoMugo)
- Document TelegramBot.errors, TelegramBot.messageTypes (by @GochoMugo)
Changed:
- Update TelegramBot#answerCallbackQuery() signature (by @GochoMugo)
- Improve default error logging of
polling_error
andwebhook_error
(#377) - Update dependencies
Deprecated:
- Sending files: (See usage guide) (by @hufan-akari, @GochoMugo)
- Error will not be thrown if
Buffer
is used and file-type could not be detected. - Filename will not be set to
data.${ext}
ifBuffer
is used - Content type will not default to
null
orundefined
- Error will not be thrown if
Fixed:
- Fix the offset infinite loop bug (#265, #36) (by @GochoMugo)
- Fix game example (#449, #418) (by @MCSH)
0.29.0 - 2017-10-22
Added:
- Add Bot API v3.2 methods:
- (#429) TelegramBot#getStickerSet (by @CapacitorSet, @LibertyLocked)
- (#430) TelegramBot#uploadStickerFile (by @CapacitorSet)
- TelegramBot#createNewStickerSet, TelegramBot#addStickerToSet, TelegramBot#setStickerPositionInSet, TelegramBot#deleteStickerFromSet (by @GochoMugo)
- Supports API v3.3
Deprecated:
- Auto-enabling Promise cancellation (#319) (by @GochoMugo)
0.28.0 - 2017-08-06
Added:
- (#361) Support Bot API v3.1 (by @Lord-Protector, @kamikazechaser)
- (#332) Support Bot API v3.0 (by @kamikazechaser, @GochoMugo)
- Add TelegramBot#removeTextListener() (by @GochoMugo)
- (#342) Add game example (by @MCSH)
- (#315) List 'bot-brother' project in community section in README (by @saeedhei)
Changed:
- (#367) Update TelegramBot#answerCallbackQuery() signature (by @mnb3000)
Fixed:
- (#325) Fix global regexp state reset (by @Sirius-A)
- (#363) Fix download file path on windows (by @kucherenkovova)
- (#346) Fix anchor webhook link in docs (by @Coac)
0.27.1 - 2017-04-07
Added:
- (#287) Add Express WebHook example (by @kamikazechaser)
Fixed:
- (#291) Improve docs (by @preco21)
- (#298) Fix running on Node v5 (by @jehy)
- (#307) Fix badge links in README (by @JaakkoLipsanen)
- Fix defaulting value of
options.polling.params.timeout
(by @GochoMugo) - Fix typos in Github issue template (by @GochoMugo, requested-by @GingerPlusPlus)
0.27.0 - 2017-02-10
Added:
- Add constructor options:
- (#243)
options.polling.params
(by @GochoMugo, requested-by @sidelux)
- Add methods:
- (#74) TelegramBot#removeReplyListener() (by @githugger)
- (#283) Add proper error handling (by @GochoMugo)
- (#272) Add health-check endpoint (by @mironov)
options.webHook.healthEndpoint
- (#152) Add test for TelegramBot#sendDocument() using 'fileOpts' param (by @evolun)
- Document
options.webHook.host
(by @GochoMugo) - (#264) Add Bot API version to README (by @kamikazechaser)
- Add examples:
- (#271) WebHook on Heroku (by @TheBeastOfCaerbannog)
- (#274) WebHook on Zeit Now (by @Ferrari)
Changed:
- (#147) Use String#indexOf(), instead of RegExp#test(), to find token in webhook request (by @AVVS)
Fixed:
- Fix bug:
- (#275, #280) fix es6 syntax error on Node.js v4.x (by @crazyabdul)
- (#276) promise.warning from
request-promise
(by @GochoMugo, reported-by @preco21) - (#281) fix handling error during polling (by @GochoMugo, reported-by @dimawebmaker)
- (#284) fix error during deletion of already-set webhook, during polling (by @GochoMugo, reported-by @dcparga)
- Fix links in documentation (by @Ni2c2k)
0.26.0 - 2017-01-20
Added:
- Add TelegramBot constructor options:
options.https
options.baseApiUrl
options.filepath
- Add methods:
- TelegramBot#stopPolling()
- TelegramBot#isPolling()
- TelegramBot#openWebHook()
- TelegramBot#closeWebHook()
- TelegramBot#hasOpenWebHook()
- TelegramBot#deleteWebHook()
- TelegramBot#getWebHookInfo()
Changed:
- Use POST requests by default
- Ensure all relevant methods return Promises
- Document auto-deletion of webhook during polling
- Deprecate support for Node.js v0.12
- Fix consistency of methods signatures
- Rename TelegramBot#initPolling() to TelegramBot#startPolling()
- Deprecate TelegramBot#initPolling()
Fixed:
- Handle error during formatting
formData
- Fix ES6 syntax
Credits/Blames: Unless explicitly stated otherwise, above work was done by @GochoMugo
0.25.0 - 2016-12-21
Added:
- Supports the API v2.3 updates (by @kamikazechaser)
- Add TelegramBot constructor option:
options.request
: proxy extra request options (by @tarmolov)options.onlyFirstMatch
(by @GingerPlusPlus)
- Add methods:
- TelegramBot#sendVenue() (by Tketa)
- TelegramBot#sendContact() (by @GochoMugo)
- TelegramBot#getGameHighScores() (by @jishnu7)
Fixed:
- Fix request performance issue (by @preco21)
- Fix typos (by oflisback)