Answer the question
In order to leave comments, you need to log in
What is the error (Telegram API)?
Hello, there was a need to kick players on the command !kick, a search on the Internet gave the result:
bot.onText(/!kick/, function (message, args) {
bot.kickChatMember(message.chat.id, message.reply_to_message.from.id, {until_date: Date.now() + ms("5m")}).then(function (result) {
console.log("ok");
});
Answer the question
In order to leave comments, you need to log in
Your code seems to be correct! Try to print the values to the console
Are you providing the correct data?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question