* 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
* Telegram Bot API v5.3
Add new methods:
* deleteMyCommands
* banChatMember
* getChatMemberCount
Deprecated:
* Method kickChatMember()
* Method getChatMembersCount()
New Test:
* deleteMyCommands
* banChatMember
* getChatMemberCount
* docs: gen on linux
Co-authored-by: Mohammed Sohail <sohailsameja@gmail.com>
* 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
Follow up update to #625
- Tests for both methods (sendAnimation, editMediaMessage) have been
added. editMediaMessage is nested under sendAnimation, hence both tests
are technically under a single block.
- Add an improvement/minor fix to the editMediaMessage method, where we
now stringify the first parameter (media) object interally within the
library. This allows the lib user to simply pass an object as the 1st
param without stringifying it.
Bug:
We MUST ensure we update the description. If the description
is unchanged, an error is thrown by the API.
Fix:
Append a random number to the description.
Bug:
The registered listeners remain in effect even after
the suite is completed; allowing other suites to trigger
the listeners.
Fix:
Perform clean-up before moving to next suite.
Feature:
This is the opposite action to `TelegramBot#onText()`.
It allows removing any previously-registered listeners.
It is similar to `TelegramBot#removeReplyListener()`.
Bug:
During polling, deleting the already-set webhook, caused
the `TelegramBotPolling#_getUpdates()` return an unexpected
value.
We expect the method to return an array (in the `.then()` clause).
However, deleting the webhook returns its value, which is an object,
from the method `_getUpdates()`.
Fix:
Simply retry the polling request and return the promise.
Notes:
Should we use recursion? I do not think so.
Why? The chances of getting the error (having a webhook set) AGAIN
is quite rare. And if it happens, there must be some problem with
different instances invoking polling and webhook simultaneously.
In that case, we wont struggle to recover from such a scenario.
User is on their own! Isht!
References:
* Bug report: https://github.com/yagop/node-telegram-bot-api/issues/284
* Reported by: @dcparga