#Is it possible to make bot kick a user?
3 messages · Page 1 of 1 (latest)
const gchat = await msg.getChat() as GroupChat;
if (chat.isGroup) {
await gchat.removeParticipants([`[email protected]`]).catch(e=>console.log(e))
}
3 messages · Page 1 of 1 (latest)
I want to know s it possible to make bot kick a user? If it can please give me a example code.
const gchat = await msg.getChat() as GroupChat;
if (chat.isGroup) {
await gchat.removeParticipants([`[email protected]`]).catch(e=>console.log(e))
}