A small example for using
onReplyToMessage
is provided: https://github.com/yagop/node-telegram-bot-api/blob/master/examples/replyToMessage.jsMany changes were added:
Support for Bots 2.0:
- kickChatMember
- unbanChatMember
- answerCallbackQuery
- editMessageText
- editMessageCaption
- editMessageReplyMarkup
- callback_query message
Handle Error 409; requesting polling when a WebHook is set
Filename and content type can by specified sendDocument
After long time, new version (
v0.24.0
) is released. Many new features are introduced such as game API, 'edited_message' event and leaveChat, getChatAdministrators, getChatMembersCount, getChatMember, sendVenue requests.Especial thanks to @GochoMugo who I gave contributor rights and merged many PR! ๐
New release,
1. Supports the API v2.3 updates (by @kamikazechaser)
2. Proxy extra request options (by @tarmolov)
3. Fix request performance issue (by @preco21)
4. Support
5. Support
6. Added
7. Support
8. Fix typos (by oflisback)
Thanks for your continued interest and support.
Happy new year!
v0.25.0
. The changes include:1. Supports the API v2.3 updates (by @kamikazechaser)
2. Proxy extra request options (by @tarmolov)
3. Fix request performance issue (by @preco21)
4. Support
sendVenue
method (by Tketa)5. Support
sendContact
method (by @GochoMugo)6. Added
onlyFirstMatch
option (by @GingerPlusPlus)7. Support
getGameHighScores
method (by @jishnu7)8. Fix typos (by oflisback)
Thanks for your continued interest and support.
Happy new year!
New release, v0.26.0:
Added:
1. Add TelegramBot constructor options:
* options.https
* options.baseApiUrl
* options.filepath
2. Add methods:
* TelegramBot#stopPolling()
* TelegramBot#isPolling()
* TelegramBot#openWebHook()
* TelegramBot#closeWebHook()
* TelegramBot#hasOpenWebHook()
* TelegramBot#deleteWebHook()
* TelegramBot#getWebHookInfo()
Changed:
1. Use POST requests by default
2. Ensure all relevant methods return Promises
3. Document auto-deletion of webhook during polling
4. Deprecate support for Node.js v0.12
5. Fix consistency of methods signatures
6. Rename TelegramBot#initPolling() to TelegramBot#startPolling()
* Deprecate TelegramBot#initPolling()
Fixed:
1. Handle error during formatting formData
2. Fix ES6 syntax
Credits/Blames: Unless explicitly stated otherwise, above work was done by @GochoMugo. Thanks to all who have contributed in code and discussion in advancing this project.
We hope you find the library more easier and stable to work with. Happy coding!
Added:
1. Add TelegramBot constructor options:
* options.https
* options.baseApiUrl
* options.filepath
2. Add methods:
* TelegramBot#stopPolling()
* TelegramBot#isPolling()
* TelegramBot#openWebHook()
* TelegramBot#closeWebHook()
* TelegramBot#hasOpenWebHook()
* TelegramBot#deleteWebHook()
* TelegramBot#getWebHookInfo()
Changed:
1. Use POST requests by default
2. Ensure all relevant methods return Promises
3. Document auto-deletion of webhook during polling
4. Deprecate support for Node.js v0.12
5. Fix consistency of methods signatures
6. Rename TelegramBot#initPolling() to TelegramBot#startPolling()
* Deprecate TelegramBot#initPolling()
Fixed:
1. Handle error during formatting formData
2. Fix ES6 syntax
Credits/Blames: Unless explicitly stated otherwise, above work was done by @GochoMugo. Thanks to all who have contributed in code and discussion in advancing this project.
We hope you find the library more easier and stable to work with. Happy coding!
New Release, v0.27.0:
Added:
1. Add constructor options:
* (#243) options.polling.params (by @GochoMugo, requested-by @sidelux)
2. Add methods:
* (#74) *TelegramBot#removeReplyListener()* (by @githugger)
3. (#283) Add proper error handling (by @GochoMugo)
4. (#272) Add health-check endpoint (by @mironov)
* options.webHook.healthEndpoint
5. (#152) Add test for TelegramBot#sendDocument() using 'fileOpts'
param (by @evolun)
6. Document options.webHook.host (by @GochoMugo)
7. (#264) Add Bot API version to README (by @kamikazechaser)
8. Add examples:
- (#271) WebHook on Heroku (by @TheBeastOfCaerbannog)
- (#274) WebHook on Zeit Now (by @Ferrari)
Changed:
1. (#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)
2. Fix links in documentation (by @Ni2c2k)
An Early Happy Valentine's Day โค๏ธ
Added:
1. Add constructor options:
* (#243) options.polling.params (by @GochoMugo, requested-by @sidelux)
2. Add methods:
* (#74) *TelegramBot#removeReplyListener()* (by @githugger)
3. (#283) Add proper error handling (by @GochoMugo)
4. (#272) Add health-check endpoint (by @mironov)
* options.webHook.healthEndpoint
5. (#152) Add test for TelegramBot#sendDocument() using 'fileOpts'
param (by @evolun)
6. Document options.webHook.host (by @GochoMugo)
7. (#264) Add Bot API version to README (by @kamikazechaser)
8. Add examples:
- (#271) WebHook on Heroku (by @TheBeastOfCaerbannog)
- (#274) WebHook on Zeit Now (by @Ferrari)
Changed:
1. (#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)
2. Fix links in documentation (by @Ni2c2k)
An Early Happy Valentine's Day โค๏ธ
New Release, v0.28.0
Added:
1. (#361) Support Bot API v3.1 (by @Lord-Protector, @kamikazechaser)
2. (#332) Support Bot API v3.0 (by @kamikazechaser, @GochoMugo)
3. Add TelegramBot#removeTextListener() (by @GochoMugo)
4. (#342) Add game example (by @MCSH)
5. (#315) List 'bot-brother' project in community section in README (by @saeedhei)
Changed:
1. (#367) Update TelegramBot#answerCallbackQuery() signature (by @mnb3000)
Fixed:
1. (#325) Fix global regexp state reset (by @Sirius-A)
2. (#363) Fix download file path on windows (by @kucherenkovova)
3. (#346) Fix anchor webhook link in docs (by @Coac)
Sorry for the wait.
Added:
1. (#361) Support Bot API v3.1 (by @Lord-Protector, @kamikazechaser)
2. (#332) Support Bot API v3.0 (by @kamikazechaser, @GochoMugo)
3. Add TelegramBot#removeTextListener() (by @GochoMugo)
4. (#342) Add game example (by @MCSH)
5. (#315) List 'bot-brother' project in community section in README (by @saeedhei)
Changed:
1. (#367) Update TelegramBot#answerCallbackQuery() signature (by @mnb3000)
Fixed:
1. (#325) Fix global regexp state reset (by @Sirius-A)
2. (#363) Fix download file path on windows (by @kucherenkovova)
3. (#346) Fix anchor webhook link in docs (by @Coac)
Sorry for the wait.
New tutorial to get started using node-telegram-bot-api: https://github.com/hosein2398/node-telegram-bot-api-tutorial (Give a star โญ๏ธ pls)
GitHub
GitHub - hosein2398/node-telegram-bot-api-tutorial: node-telegram-bot-api tutorial
node-telegram-bot-api tutorial. Contribute to hosein2398/node-telegram-bot-api-tutorial development by creating an account on GitHub.
New Release, v0.29.0
Added:
1. 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)
2. Supports API v3.3
Deprecated:
1. Auto-enabling Promise cancellation (#319) (by @GochoMugo)
Added:
1. 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)
2. Supports API v3.3
Deprecated:
1. Auto-enabling Promise cancellation (#319) (by @GochoMugo)
New Release, v0.30.0 (https://github.com/yagop/node-telegram-bot-api/releases/tag/v0.30.0):
Added:
1. Support Bot API v3.5: (by @GochoMugo)
- Allow provider_data parameter in TelegramBot#sendInvoice
- Add method TelegramBot#sendMediaGroup()
2. Support Bot API v3.4: (by @kamikazechaser)
- Add methods TelegramBot#editMessageLiveLocation, TelegramBot#stopMessageLiveLocation (#439)
- Add methods TelegramBot#setChatStickerSet, TelegramBot#deleteChatStickerSet (#440)
3. Add methods:
- TelegramBot#getFileStream (#442) (by @GochoMugo, requested-by @Xaqron)
4. Add options to TelegramBot#stopPolling() (by @GochoMugo)
5. Add metadata argument in message event (and friends e.g. text, audio, etc.) (#409) (by @jlsjonas, @GochoMugo)
6. Add forward-compatibility i.e. support future additional Telegram options (by @GochoMugo)
7. Add support for Node.js v9 (by @GochoMugo)
8. Document TelegramBot.errors, TelegramBot.messageTypes (by @GochoMugo)
Changed:
1. Update TelegramBot#answerCallbackQuery() signature (by @GochoMugo)
2. Improve default error logging of polling_error and webhook_error (#377)
3. Update dependencies
Deprecated:
1. Sending files: (See [usage guide][usage-sending-files]) (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} if Buffer is used
- Content type will not default to null or undefined
Fixed:
1. Fix the offset infinite loop bug (#265, #36) (by @GochoMugo)
2. Fix game example (#449, #418) (by @MCSH)
Happy holidays! From the NTBA contributors.
Added:
1. Support Bot API v3.5: (by @GochoMugo)
- Allow provider_data parameter in TelegramBot#sendInvoice
- Add method TelegramBot#sendMediaGroup()
2. Support Bot API v3.4: (by @kamikazechaser)
- Add methods TelegramBot#editMessageLiveLocation, TelegramBot#stopMessageLiveLocation (#439)
- Add methods TelegramBot#setChatStickerSet, TelegramBot#deleteChatStickerSet (#440)
3. Add methods:
- TelegramBot#getFileStream (#442) (by @GochoMugo, requested-by @Xaqron)
4. Add options to TelegramBot#stopPolling() (by @GochoMugo)
5. Add metadata argument in message event (and friends e.g. text, audio, etc.) (#409) (by @jlsjonas, @GochoMugo)
6. Add forward-compatibility i.e. support future additional Telegram options (by @GochoMugo)
7. Add support for Node.js v9 (by @GochoMugo)
8. Document TelegramBot.errors, TelegramBot.messageTypes (by @GochoMugo)
Changed:
1. Update TelegramBot#answerCallbackQuery() signature (by @GochoMugo)
2. Improve default error logging of polling_error and webhook_error (#377)
3. Update dependencies
Deprecated:
1. Sending files: (See [usage guide][usage-sending-files]) (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} if Buffer is used
- Content type will not default to null or undefined
Fixed:
1. Fix the offset infinite loop bug (#265, #36) (by @GochoMugo)
2. Fix game example (#449, #418) (by @MCSH)
Happy holidays! From the NTBA contributors.
GitHub
Release v0.30.0 ยท yagop/node-telegram-bot-api
Added:
Support Bot API v3.5: (by @GochoMugo)
Allow provider_data parameter in TelegramBot#sendInvoice
Add method TelegramBot#sendMediaGroup()
Support Bot API v3.4: (by @kamikazechaser)
Add met...
Support Bot API v3.5: (by @GochoMugo)
Allow provider_data parameter in TelegramBot#sendInvoice
Add method TelegramBot#sendMediaGroup()
Support Bot API v3.4: (by @kamikazechaser)
Add met...
New release v0.50.0
Added:
Support Bot API v4.8: (by @danielperez9430)
Add methods: sendDice()
Support Bot API v4.7: (by @danielperez9430)
Add methods: getMyCommands(),setMyCommands()
Support Bot API v4.5: (by @danielperez9430)
Add methods: setChatAdministratorCustomTitle()
Support Bot API v4.4: (by @danielperez9430)
Add methods: setChatPermissions()
Support for poll_answer (by @JieJiSS)
Add request options in file stream (by @zhangpanyi )
Changed: (by @danielperez9430)
New message type: dice
Fix Bugs in tests
Fix regex compare (by @ledamint)
Fix listening for error events when downloading files (by @Kraigo)
Added:
Support Bot API v4.8: (by @danielperez9430)
Add methods: sendDice()
Support Bot API v4.7: (by @danielperez9430)
Add methods: getMyCommands(),setMyCommands()
Support Bot API v4.5: (by @danielperez9430)
Add methods: setChatAdministratorCustomTitle()
Support Bot API v4.4: (by @danielperez9430)
Add methods: setChatPermissions()
Support for poll_answer (by @JieJiSS)
Add request options in file stream (by @zhangpanyi )
Changed: (by @danielperez9430)
New message type: dice
Fix Bugs in tests
Fix regex compare (by @ledamint)
Fix listening for error events when downloading files (by @Kraigo)
New release v0.51.0
Added:
1. Support Bot API v5.0: (by @danielperez9430)
* Add method *copyMessage()*
* Add method *unpinAllChatMessages()*
* Add method *close()*
* Add method *logOut()*
Changed: (by @danielperez9430)
* Remove trailing-spaces
* Fix Bugs in Test
New Test: (by @danielperez9430)
* copyMessage
* unpinAllChatMessages
โจ Special thanks to @kamikazechaser and @danielperez9430 โจ
Added:
1. Support Bot API v5.0: (by @danielperez9430)
* Add method *copyMessage()*
* Add method *unpinAllChatMessages()*
* Add method *close()*
* Add method *logOut()*
Changed: (by @danielperez9430)
* Remove trailing-spaces
* Fix Bugs in Test
New Test: (by @danielperez9430)
* copyMessage
* unpinAllChatMessages
โจ Special thanks to @kamikazechaser and @danielperez9430 โจ
New release v0.65.0 ๐
1. Support Telegram Bot API v7.1
deleteMessages (@Sp3ricka)
copyMessages (@xjx0106 & @Sp3ricka)
setMessageReaction (@Sp3ricka)
forwardMessages (@danielperez9430)
getUserChatBoosts (@danielperez9430)
2. Minor changes: (@danielperez9430)
Refactor methods order
Fix copyMessages & setMessageReaction methods
Added missing tests
Fix tests for methods copyMessages & getMyDefaulAdministratorRights
https://www.npmjs.com/package/node-telegram-bot-apinpm
npm: node-telegram-bot-api
Telegram Bot API. Latest version: 0.66.0, last published: a year ago. Start using node-telegram-bot-api in your project by running `npm i node-telegram-bot-api`. There are 491 other projects in the npm registry using node-telegram-bot-api.
New release v0.65.1 ๐
https://www.npmjs.com/package/node-telegram-bot-api
1. Support for updates (
@danielperez9430)
message_reaction
message_reaction_count
chat_boost
removed_chat_boost
https://www.npmjs.com/package/node-telegram-bot-api
GitHub
node-telegram-bot-api/CHANGELOG.md at master ยท yagop/node-telegram-bot-api
Telegram Bot API for NodeJS. Contribute to yagop/node-telegram-bot-api development by creating an account on GitHub.
New release v0.66.0
Support Telegram Bot API 7.2 & 7.3 (@danielperez9430)
- getBusinessConnection
- replaceStickerInSet
Support for updates: (@danielperez9430)
- business_connection
- business_message
- edited_business_message
- deleted_business_messages
Minor fixes: (@danielperez9430)
- getUserChatBoosts
GitHub
node-telegram-bot-api/CHANGELOG.md at master ยท yagop/node-telegram-bot-api
Telegram Bot API for NodeJS. Contribute to yagop/node-telegram-bot-api development by creating an account on GitHub.