Bafang makes a lot of stuff. Hub? Middrive? Internal or external controller? Etc?
As for throttles in general, they are usually hall sensor types, and so usually have 5v on one wire, ground on anohter, and a signal that goes from just above 0V to around 4V, depending on the actual throttle unit.
The response of the controller to that input can vary significantly. Many are marked, some are not. Some don't start responding till it reaches over 1V, even 1.4V. Some stop responding around 3-3.5v, some higher than that. So you'd need to test your actual controller to see where it's response limits are.