UNPKG

9.99 kBMarkdownView Raw
1# Change Log
2
3All notable changes to this project will be documented in this file.
4This project adheres to [Semantic Versioning](http://semver.org/).
5
6## [0.56.0][0.56.0] - 2021-12-07
7
8Added:
9
101. Support Bot API v5.5: (@danielperez9430)
11
12 * Add method *banChatSenderChat()*
13 * Add method *unbanChatSenderChat()*
14
15 Fixes:
16
17 * Tests for support with new invite link format
18
19## [0.55.0][0.55.0] - 2021-11-06
20
21Added:
22
231. Support Bot API v5.4: (@danielperez9430)
24
25 * Add method *approveChatJoinRequest()*
26 * Add method *declineChatJoinRequest()*
27 * Add support for new updates:
28 * *chat_join_request*
29
30 Fixes:
31
32 * Method *editMessageMedia*: Now you can send a local file (`"attach://" + filePatch`)
33
34## [0.54.0][0.54.0] - 2021-06-29
35
36Added:
37
381. Support Bot API v5.3: (@danielperez9430)
39
40 * Add method *deleteMyCommands()*
41 * Add method *banChatMember()*
42 * Add method *getChatMemberCount()*
43
44 New Test:
45
46 * deleteMyCommands
47 * banChatMember
48 * getChatMemberCount
49
50 Deprecated:
51 * Method *kickChatMember()*
52 * Method *getChatMembersCount()*
53
54## [0.53.0][0.53.0] - 2021-04-26
55
56Added:
57
581. Support Bot API v5.2:(@danielperez9430)
59
60 * Add support for new messageTypes:
61 * *voice_chat_scheduled*
62
63## [0.52.0][0.52.0] - 2021-03-20
64
65Added:
66
671. Support Bot API v5.1: (by @danielperez9430)
68
69 * Add method *createChatInviteLink()*
70 * Add method *editChatInviteLink()*
71 * Add method *revokeChatInviteLink()*
72 * Add support for new messageTypes:
73 * *voice_chat_started*
74 * *voice_chat_ended*
75 * *voice_chat_participants_invited*
76 * *message_auto_delete_timer_changed*
77 * *chat_invite_link*
78 * *chat_member_updated*
79 * Add support for new updates:
80 * *my_chat_member*
81 * *chat_member*
82
83 New Test: (by @danielperez9430)
84
85 * createChatInviteLink
86 * editChatInviteLink
87 * revokeChatInviteLink
88
89## [0.51.0][0.51.0] - 2020-11-04
90
91Added:
92
931. Support Bot API v5.0: (by @danielperez9430)
94
95 * Add method *copyMessage()*
96 * Add method *unpinAllChatMessages()*
97 * Add method *close()*
98 * Add method *logOut()*
99
100 Changed: (by @danielperez9430)
101
102 * Remove trailing-spaces
103 * Fix Bugs in Test
104
105 New Test: (by @danielperez9430)
106
107 * copyMessage
108 * unpinAllChatMessages
109
110## [0.50.0][0.50.0] - 2020-05-2020
111
112Added:
113
1141. Support Bot API v4.8: (by @danielperez9430)
115 * Add methods: *sendDice()*
1162. Support Bot API v4.7: (by @danielperez9430)
117 * Add methods: *getMyCommands()*,*setMyCommands()*
1183. Support Bot API v4.5: (by @danielperez9430)
119 * Add methods: *setChatAdministratorCustomTitle()*
1204. Support Bot API v4.4: (by @danielperez9430)
121 * Add methods: *setChatPermissions()*
1225. Support for poll_answer (by @JieJiSS)
1236. Add request options in file stream (by @zhangpanyi )
124
125Changed: (by @danielperez9430)
126
127* New message type: *dice*
128* Fix Bugs in tests
129* Fix regex compare (by @ledamint)
130* Fix listening for error events when downloading files (by @Kraigo)
131
132New Test: (by @danielperez9430)
133
134* sendDice
135* getMyCommands
136* setMyCommands
137* setChatAdministratorCustomTitle
138* setChatPermissions
139
140## [0.40.0][0.40.0] - 2019-05-04
141
142Added:
143
1441. Support Bot API v4.2: (by @kamikazechaser)
145 * Add methods: *TelegramBot#sendPoll()*, *TelegramBot#stopPoll()*
146 * Support events: *poll*
1472. Support Bot API v4.0: (by @kamikazechaser)
148 * Add methods: *TelegramBot#editMessageMedia()*, *TelegramBot#sendAnimation()*
149 * Support new message types: *passport_data*, *animation*
150
151* * *
152
153## [0.30.0][0.30.0] - 2017-12-21
154
155Added:
156
1571. Support Bot API v3.5: (by @GochoMugo)
158 * Allow `provider_data` parameter in *TelegramBot#sendInvoice*
159 * Add method *TelegramBot#sendMediaGroup()*
1602. Support Bot API v3.4: (by @kamikazechaser)
161 * Add methods *TelegramBot#editMessageLiveLocation*, *TelegramBot#stopMessageLiveLocation* (#439)
162 * Add methods *TelegramBot#setChatStickerSet*, *TelegramBot#deleteChatStickerSet* (#440)
1633. Add methods:
164 * *TelegramBot#getFileStream* (#442) (by @GochoMugo, requested-by @Xaqron)
1654. Add options to *TelegramBot#stopPolling()* (by @GochoMugo)
1665. Add `metadata` argument in `message` event (and friends e.g. `text`, `audio`, etc.) (#409) (by @jlsjonas, @GochoMugo)
1676. Add forward-compatibility i.e. support future additional Telegram options (by @GochoMugo)
1687. Add support for Node.js v9 (by @GochoMugo)
1698. Document *TelegramBot.errors*, *TelegramBot.messageTypes* (by @GochoMugo)
170
171Changed:
172
1731. Update *TelegramBot#answerCallbackQuery()* signature (by @GochoMugo)
1742. Improve default error logging of `polling_error` and `webhook_error` (#377)
1753. Update dependencies
176
177Deprecated:
178
1791. Sending files: *(See [usage guide][usage-sending-files])* (by @hufan-akari, @GochoMugo)
180 * Error will **not** be thrown if `Buffer` is used and file-type could **not** be detected.
181 * Filename will **not** be set to `data.${ext}` if `Buffer` is used
182 * Content type will **not** default to `null` or `undefined`
183
184Fixed:
185
1861. Fix the offset infinite loop bug (#265, #36) (by @GochoMugo)
1872. Fix game example (#449, #418) (by @MCSH)
188
189* * *
190
191## [0.29.0][0.29.0] - 2017-10-22
192
193Added:
194
1951. Add Bot API v3.2 methods:
196 * (#429) *TelegramBot#getStickerSet* (by @CapacitorSet, @LibertyLocked)
197 * (#430) *TelegramBot#uploadStickerFile* (by @CapacitorSet)
198 * *TelegramBot#createNewStickerSet*, *TelegramBot#addStickerToSet*, *TelegramBot#setStickerPositionInSet*, *TelegramBot#deleteStickerFromSet* (by @GochoMugo)
1992. Supports API v3.3
200
201Deprecated:
202
2031. Auto-enabling Promise cancellation (#319) (by @GochoMugo)
204
205* * *
206
207## [0.28.0][0.28.0] - 2017-08-06
208
209Added:
210
2111. (#361) Support Bot API v3.1 (by @Lord-Protector, @kamikazechaser)
2122. (#332) Support Bot API v3.0 (by @kamikazechaser, @GochoMugo)
2133. Add *TelegramBot#removeTextListener()* (by @GochoMugo)
2144. (#342) Add game example (by @MCSH)
2155. (#315) List 'bot-brother' project in community section in README (by @saeedhei)
216
217Changed:
218
2191. (#367) Update *TelegramBot#answerCallbackQuery()* signature (by @mnb3000)
220
221Fixed:
222
2231. (#325) Fix global regexp state reset (by @Sirius-A)
2242. (#363) Fix download file path on windows (by @kucherenkovova)
2253. (#346) Fix anchor webhook link in docs (by @Coac)
226
227* * *
228
229## [0.27.1][0.27.1] - 2017-04-07
230
231Added:
232
2331. (#287) Add Express WebHook example (by @kamikazechaser)
234
235Fixed:
236
2371. (#291) Improve docs (by @preco21)
2382. (#298) Fix running on Node v5 (by @jehy)
2393. (#307) Fix badge links in README (by @JaakkoLipsanen)
2404. Fix defaulting value of `options.polling.params.timeout` (by @GochoMugo)
2415. Fix typos in Github issue template (by @GochoMugo, requested-by @GingerPlusPlus)
242
243* * *
244
245## [0.27.0][0.27.0] - 2017-02-10
246
247Added:
248
2491. Add constructor options:
250 * (#243) `options.polling.params` (by @GochoMugo, requested-by @sidelux)
2512. Add methods:
252 * (#74) *TelegramBot#removeReplyListener()* (by @githugger)
2533. (#283) Add proper error handling (by @GochoMugo)
2544. (#272) Add health-check endpoint (by @mironov)
255 * `options.webHook.healthEndpoint`
2565. (#152) Add test for TelegramBot#sendDocument() using 'fileOpts'
257 param (by @evolun)
2586. Document `options.webHook.host` (by @GochoMugo)
2597. (#264) Add Bot API version to README (by @kamikazechaser)
2608. Add examples:
261 - (#271) WebHook on Heroku (by @TheBeastOfCaerbannog)
262 - (#274) WebHook on Zeit Now (by @Ferrari)
263
264Changed:
265
2661. (#147) Use *String#indexOf()*, instead of *RegExp#test()*, to
267 find token in webhook request (by @AVVS)
268
269Fixed:
270
271* Fix bug:
272 - (#275, #280) fix es6 syntax error on Node.js v4.x (by @crazyabdul)
273 - (#276) promise.warning from `request-promise` (by @GochoMugo,
274 reported-by @preco21)
275 - (#281) fix handling error during polling (by @GochoMugo,
276 reported-by @dimawebmaker)
277 - (#284) fix error during deletion of already-set webhook, during
278 polling (by @GochoMugo, reported-by @dcparga)
2791. Fix links in documentation (by @Ni2c2k)
280
281* * *
282
283## [0.26.0][0.26.0] - 2017-01-20
284
285Added:
286
2871. Add *TelegramBot* constructor options:
288 * `options.https`
289 * `options.baseApiUrl`
290 * `options.filepath`
2912. Add methods:
292 * *TelegramBot#stopPolling()*
293 * *TelegramBot#isPolling()*
294 * *TelegramBot#openWebHook()*
295 * *TelegramBot#closeWebHook()*
296 * *TelegramBot#hasOpenWebHook()*
297 * *TelegramBot#deleteWebHook()*
298 * *TelegramBot#getWebHookInfo()*
299
300Changed:
301
3021. Use POST requests by default
3032. Ensure all relevant methods return Promises
3043. Document auto-deletion of webhook during polling
3054. Deprecate support for Node.js v0.12
3065. Fix consistency of methods signatures
3076. Rename *TelegramBot#initPolling()* to *TelegramBot#startPolling()*
308 * Deprecate *TelegramBot#initPolling()*
309
310Fixed:
311
3121. Handle error during formatting `formData`
3132. Fix ES6 syntax
314
315*Credits/Blames: Unless explicitly stated otherwise, above work was
316done by @GochoMugo*
317
318* * *
319
320## [0.25.0][0.25.0] - 2016-12-21
321
322Added:
323
3241. Supports the API v2.3 updates (by @kamikazechaser)
3252. Add *TelegramBot* constructor option:
326 * `options.request`: proxy extra request options (by @tarmolov)
327 * `options.onlyFirstMatch` (by @GingerPlusPlus)
3283. Add methods:
329 * *TelegramBot#sendVenue()* (by Tketa)
330 * *TelegramBot#sendContact()* (by @GochoMugo)
331 * *TelegramBot#getGameHighScores()* (by @jishnu7)
332
333Fixed:
334
3351. Fix request performance issue (by @preco21)
3362. Fix typos (by oflisback)
337
338[usage-sending-files]:https://github.com/yagop/node-telegram-bot-api/blob/master/doc/usage.md#sending-files-options
339
340[0.25.0]:https://github.com/yagop/node-telegram-bot-api/releases/tag/v0.25.0
341[0.26.0]:https://github.com/yagop/node-telegram-bot-api/releases/tag/v0.26.0
342[0.27.0]:https://github.com/yagop/node-telegram-bot-api/releases/tag/v0.27.0
343[0.27.1]:https://github.com/yagop/node-telegram-bot-api/releases/tag/v0.27.1
344[0.28.0]:https://github.com/yagop/node-telegram-bot-api/releases/tag/v0.28.0
345[0.29.0]:https://github.com/yagop/node-telegram-bot-api/releases/tag/v0.29.0
346[0.30.0]:https://github.com/yagop/node-telegram-bot-api/releases/tag/v0.30.0
347[Unreleased]:https://github.com/yagop/node-telegram-bot-api/compare/v0.30.0...master