SmartestChatBot icon indicating copy to clipboard operation
SmartestChatBot copied to clipboard

just fix typescript error when you try to pass token inside the client

Open KMKINGMAN opened this issue 1 year ago • 0 comments

you have a problem with typescript client declare when you try to make a new client like

import chatbot from "smartestchatbot";
let token = ""
let chatClient = new chatbot.Client(token)

it will give you an error when you compile the code. to fix that you need to add constructor(token: string);

KMKINGMAN avatar Mar 09 '23 01:03 KMKINGMAN