mirror of
https://github.com/yagop/node-telegram-bot-api
synced 2025-08-31 14:25:57 +00:00
Telegram Bot API v5.3 Support (#886)
* 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>
This commit is contained in:
committed by
GitHub
parent
2c06bc3b3d
commit
5a4787884e
@@ -834,7 +834,7 @@ describe('TelegramBot', function telegramSuite() {
|
||||
});
|
||||
});
|
||||
|
||||
describe.skip('#kickChatMember', function kickChatMemberSuite() { });
|
||||
describe.skip('#banChatMember', function banChatMemberSuite() { });
|
||||
|
||||
describe.skip('#unbanChatMember', function unbanChatMemberSuite() { });
|
||||
|
||||
@@ -864,6 +864,14 @@ describe('TelegramBot', function telegramSuite() {
|
||||
});
|
||||
});
|
||||
|
||||
describe('#deleteMyCommands', function deleteMyCommandsSuite() {
|
||||
it('should delete bot commands', function test() {
|
||||
return bot.deleteMyCommands().then(resp => {
|
||||
assert.ok(is.boolean(resp));
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe.skip('#setChatAdministratorCustomTitle ', function setChatAdministratorCustomTitleSuite() {
|
||||
it('should set chat permissions', function test() {
|
||||
return bot.setChatAdministratorCustomTitle(GROUPID, USERID, 'Custom Name').then(resp => {
|
||||
@@ -1418,12 +1426,12 @@ describe('TelegramBot', function telegramSuite() {
|
||||
});
|
||||
});
|
||||
|
||||
describe('#getChatMembersCount', function getChatMembersCountSuite() {
|
||||
describe('#getChatMemberCount', function getChatMemberCountSuite() {
|
||||
before(function before() {
|
||||
utils.handleRatelimit(bot, 'getChatMembersCount', this);
|
||||
utils.handleRatelimit(bot, 'getChatMemberCount', this);
|
||||
});
|
||||
it('should return an Integer', function test() {
|
||||
return bot.getChatMembersCount(GROUPID).then(resp => {
|
||||
return bot.getChatMemberCount(GROUPID).then(resp => {
|
||||
assert.ok(Number.isInteger(resp));
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user