Closed mattou78400 closed 1 year ago
Hi,
I'm trying to ban a user based on the user_id as per the method: https://core.telegram.org/bots/api#banchatmember
Here's how I call it
but I keep getting this error
I'm sending in the ID I get from msg.from.id
Can someone point me what I am doing wrong?
thanks!
Because you pass wrong the params. The last param is a object with the optional params
bot.banChatMember(chatId, userId, { unitilDate })
Hi,
I'm trying to ban a user based on the user_id as per the method: https://core.telegram.org/bots/api#banchatmember
Here's how I call it
but I keep getting this error![image](https://user-images.githubusercontent.com/39678117/206934611-19e0e353-addb-4054-89e2-6b91f17a48f1.png)
I'm sending in the ID I get from msg.from.id
Can someone point me what I am doing wrong?
thanks!