Run npm install -g btt-toggl
it will ask for your API token to communicate with the Toggl API.
And then copy and paste generated JSON from command line into BTT.
Done
The widget will display if there is any running task on Toggl. When clicked it will toggl the state (stop or start new task).