Webhooks and command line together?

Webhooks require you to host a server that listens on the callback URL for requests from Twitch when there are new notifications for the topic you’re subscribed to. So as to if you can do this in C++, the answer will be yes if you can host a web server in C++, if you can’t host a web server in that then no, webhooks wont work.