#Is it possible to make bot kick a user?

3 messages · Page 1 of 1 (latest)

meager jungle
#

I want to know s it possible to make bot kick a user? If it can please give me a example code.

trail shadow
#
const gchat = await msg.getChat() as GroupChat;

if (chat.isGroup) {
await gchat.removeParticipants([`[email protected]`]).catch(e=>console.log(e))
}