How Do I Make this API call without opening a new tab?

Hi! I am currently trying to make the process of setting up a webhook for a Telegram bot easier for my users.

I wish to connect ALL my users’ Telegram Bots to my app by setting up their webhook to my URL.
However, I only know how to setWebhook via keying in all the information into my browser and being directed to another webpage. Here is my current workflow:
image
As you can see, I run a javascipt code that automatically keys in their bot token with the correct API call and open this in a new tab. This WORKS successfully but it does not seem ideal because every time a user enters their bot token and confirms it, they see this new page:
image

Does anyone know how I can run this API call in the background without having to open this new window?

Try the API Connector, it’s a plugin from Bubble.

thanks for the answer! works out