Closed danielperez9430 closed 3 years ago
bot.onText(/^\/rcommands/, (msg) => {
var chatId = msg.chat.id;
bot.deleteMyCommands().then(function (info) {
bot.sendMessage(chatId, "All commands remove: " + info);
});
});
bot.onText(/^\/ban/, (msg) => {
var chatId = msg.chat.id;
var replyId = msg.reply_to_message.from.id;
bot.banChatMember(chatId, replyId).then(function (result) {
bot.sendMessage(chatId, "User Banned: " + result)
});
});
bot.onText(/^\/count/, (msg) => {
var chatId = msg.chat.id;
bot.getChatMembersCount(chatId)
.then(data => {
bot.sendMessage(chatId, data + " member/s in this chat");
});
});
Support Bot API v5.3: (@danielperez9430)
New Test:
Deprecated:
npm run doc
Description
Add support to Telegram Bot API v5.3
References