Documented here in the API you see that the syntax of the call is https://api.telegram.org/bot<token>/setwebhook?url=<yoururl>. For the most part this is it. If you need more information, take a look at this guide or look at the requirements (like using HTTPS).
After you set this, you c...