* feat: Remove bluebird
* docs: Update
* remove depd ans use node native deprecate msg warnings
* fix: correct util import name
* remove: contributor dev dependencie and add list of contributors in the readme
## [0.58.0][0.58.0] - 2022-06-22
1. Support Bot API v6.1: (@danielperez9430)
* Add method *createInvoiceLink()*
2. Support for setStickerSetThumb (@elihaidv)
3. Add new test (@danielperez9430)
* createInvoiceLink
4. Test fixes (@danielperez9430)
* sendVideoNote
* createNewStickerSet
* setStickerSetThumb
* getChatMenuButton
* setWebHook
5. Bug fixes (@danielperez9430)
* answerWebAppQuery
* Support for send thumb in sendAudio
* Add new method sendPoll
* getMyCommands
* setMyCommands
* Update doc/api
* 1# Fix Test sendPhoto
The sendPhoto method does not support .gif files, use sendAnimation.
This fix remplace .gif file by .png
* CustomTitle and ChatPermissions support
setChatAdministratorCustomTitle
setChatPermissions
* Update Readme
Update Badge Telegram API Version
* Minor Fix and Fix setChatPhoto
The Telegram Bots api has a bug that they are fixing and gives problems with the previous image. While they don't fix it, the image replacement is the fastest solution
* Minor Fix and Add Test
Fixed setChatPermissions
Test:
- sendDice
- getMyCommands
- setMyCommands
- setChatAdministratorCustomTitle
- setChatPermissions
* Update Changelog and Package.json version
* Fix typos in Changelog
* Add support for poll_answer
From: https://github.com/yagop/node-telegram-bot-api/pull/777
* Add JieJiSS contribution in Changelog
* Add sendPoll Test
* Add unpinAllChatMessages Support
* Add copyMessage support
* Add close and logOut Support
* Add Test + Minor fixes
* Update CHANGELOG
Update version 0.50.1
* Update Readme Bot API Badge
* Update Version to 0.51.0
* Bot API 5.1 support Improved Invite Links
- Added the method createChatInviteLink
- Added the method editChatInviteLink
- Added the method revokeChatInviteLink
* Update version to 0.52.0 and new tests
- Update Changelog
- New Test
- Update version to 0.52.0
* Add new messageTypes
- voice_chat_started
- voice_chat_ended
- voice_chat_participants_invited
* Update Changelog and add new MessageType
* New messageTypes and updates
Add support for new messageTypes:
- chat_invite_link
- chat_member_updated
Add support for new updates:
- my_chat_member
- chat_member
* Telegram Bot API 5.2 Support
* Update Changelog + readme
* Fix Changelog
* Add new method sendPoll
* getMyCommands
* setMyCommands
* Update doc/api
* 1# Fix Test sendPhoto
The sendPhoto method does not support .gif files, use sendAnimation.
This fix remplace .gif file by .png
* CustomTitle and ChatPermissions support
setChatAdministratorCustomTitle
setChatPermissions
* Update Readme
Update Badge Telegram API Version
* Minor Fix and Fix setChatPhoto
The Telegram Bots api has a bug that they are fixing and gives problems with the previous image. While they don't fix it, the image replacement is the fastest solution
* Minor Fix and Add Test
Fixed setChatPermissions
Test:
- sendDice
- getMyCommands
- setMyCommands
- setChatAdministratorCustomTitle
- setChatPermissions
* Update Changelog and Package.json version
* Fix typos in Changelog
* Add support for poll_answer
From: https://github.com/yagop/node-telegram-bot-api/pull/777
* Add JieJiSS contribution in Changelog
* Add sendPoll Test
* Add unpinAllChatMessages Support
* Add copyMessage support
* Add close and logOut Support
* Add Test + Minor fixes
* Update CHANGELOG
Update version 0.50.1
* Update Readme Bot API Badge
* Update Version to 0.51.0
* Bot API 5.1 support Improved Invite Links
- Added the method createChatInviteLink
- Added the method editChatInviteLink
- Added the method revokeChatInviteLink
* Update version to 0.52.0 and new tests
- Update Changelog
- New Test
- Update version to 0.52.0
* Add new messageTypes
- voice_chat_started
- voice_chat_ended
- voice_chat_participants_invited
* Update Changelog and add new MessageType
* New messageTypes and updates
Add support for new messageTypes:
- chat_invite_link
- chat_member_updated
Add support for new updates:
- my_chat_member
- chat_member
* Add new method sendPoll
* getMyCommands
* setMyCommands
* Update doc/api
* 1# Fix Test sendPhoto
The sendPhoto method does not support .gif files, use sendAnimation.
This fix remplace .gif file by .png
* CustomTitle and ChatPermissions support
setChatAdministratorCustomTitle
setChatPermissions
* Update Readme
Update Badge Telegram API Version
* Minor Fix and Fix setChatPhoto
The Telegram Bots api has a bug that they are fixing and gives problems with the previous image. While they don't fix it, the image replacement is the fastest solution
* Minor Fix and Add Test
Fixed setChatPermissions
Test:
- sendDice
- getMyCommands
- setMyCommands
- setChatAdministratorCustomTitle
- setChatPermissions
* Update Changelog and Package.json version
* Fix typos in Changelog
* Add support for poll_answer
From: https://github.com/yagop/node-telegram-bot-api/pull/777
* Add JieJiSS contribution in Changelog
* Add sendPoll Test
* Add unpinAllChatMessages Support
* Add copyMessage support
* Add close and logOut Support
* Add Test + Minor fixes
* Update CHANGELOG
Update version 0.50.1
* Update Readme Bot API Badge
* Update Version to 0.51.0
* Add new method sendPoll
* getMyCommands
* setMyCommands
* Update doc/api
* 1# Fix Test sendPhoto
The sendPhoto method does not support .gif files, use sendAnimation.
This fix remplace .gif file by .png
* CustomTitle and ChatPermissions support
setChatAdministratorCustomTitle
setChatPermissions
* Update Readme
Update Badge Telegram API Version
* Minor Fix and Fix setChatPhoto
The Telegram Bots api has a bug that they are fixing and gives problems with the previous image. While they don't fix it, the image replacement is the fastest solution
* Minor Fix and Add Test
Fixed setChatPermissions
Test:
- sendDice
- getMyCommands
- setMyCommands
- setChatAdministratorCustomTitle
- setChatPermissions
* Update Changelog and Package.json version
* Fix typos in Changelog
* Add support for poll_answer
From: https://github.com/yagop/node-telegram-bot-api/pull/777
* Add JieJiSS contribution in Changelog
* Add sendPoll Test
Feature:
Polling and WebHook are mutually exclusive. Therefore, return an
error whenever the user tries to start polling, and the instance has
an open webhook, or user tries to open a webhook, and the instance
is already polling.
Feature:
The constructor option, 'filepath', allows us to remove
the TelegramBot's behaviour of allowing users to pass in
file-paths as arguments, as it involves some operations
that might be (are) strongly against what a programmer wishes
to achieve with the library.
Expect this to be documented better in the near future.
Implementation:
* Backwards compatible: The default behavior is not changed!
Feature:
The different mechanisms of fetching updates, i.e. polling
and webhook, have had their implementations improved:
* the TelegramBot instance needs to create the polling and
webhook instances once, and when necessary
* returning promises from TelegramBot#openWebHook() and
TelegramBot#startPolling() allows more precise control
Also,
* TelegramBot#initPolling() is being deprecated in favor of
TelegramBot#startPolling() to ensure consistency (as the
opposite action of TelegramBot#stopPolling())
Feature:
We shall allow passing more options to the HTTP server,
in `https.createServer()`.
We are using a new property, `https`, to avoid any namespace
collisions with our own options.
`options.key`, `options.cert` and `options.pfx` are convenient
options, in that they allow the user to provide paths to the
corresponding files, which are read automatically,
though synchronously!
Implementation:
* completely backwards-compatible
* all changes are being tested, except `options.pfx`
References:
* Pass `ca` prop to https.createServer(): https://github.com/yagop/node-telegram-bot-api/pull/17
Bug:
The library assumes signatures of methods to be, somewhat:
methodName(requiredParam1, requiredParam2, form = {})
where 'requiredParam1' ('requiredParam2', ..., 'requiredParamN')
are parameters that MUST be provided, and
'form' is an optional object allowing supplying any additional,
optional parameters that the Bot API allows.
This allows any new parameters added by Telegram to be
readily-supported by our library.
Also, the following have been included:
* Corresponding tests
* Documentation on the old, deprecated signatures
* Console-logging the deprecation notices
Feature:
We are exposing TelegramBot#processUpdate() to allow instances
to be used, with mechanisms of fetching updates, other than
those provided by the library.
References:
* Example use case: https://github.com/GochoMugo/tgfancy/pull/7