* 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
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