


We currently support the following ports: 443, 80. How do I get a server with a domain name?Ī webhook needs an open port on your server. If you're using a self-signed certificate, you may use the IP as a CN, instead of the domain name. There are quite a few VPS/Web hosting providers around the internet, feel free to pick one to your liking. Telegram currently doesn't offer hosting or domain name services. If you don't have one, you'll need to obtain one first. For that you'll need a server with a domain name. Setting a webhook needs a URL for us to post to. If you decide to limit traffic to our specific range of addresses, keep an eye on this document whenever you seem to run into trouble.
#Webook them verification
Supplies all intermediate certificates to complete a verification chain.Uses a CN or SAN that matches the domain you’ve supplied on setup.Provides a supported, verified or self-signed certificate.Is able to handle TLS1.2(+) HTTPS-traffic.Supports IPv4, IPv6 is currently not supported for webhooks.To ensure that we can do that, there are some basic requirements: The short version We need to be able to connect and post updates to that URL. Setting a webhook means you supplying Telegram with a location in the form of a URL, on which your bot listens for updates. Other advantages may include saving some potential CPU cycles and an increase in response time, these things however depend heavily on the usage pattern of your bot. Avoids the need for some kind of polling mechanism in your code. Avoids your bot having to ask for updates frequently.Ģ.
#Webook them update
As soon as an update arrives, we’ll kindly deliver it to your bot for processing. There are some advantages of using a webhook over getUpdates.

This guide provides some extra information for those of you brave enough to venture into the art of the webhook. Although the concept of a webhook is fairly simple, the setup of the individual components has proven to be tricky for many. getUpdates is a pull mechanism, setwebhook is push. We currently support two ways of processing bot updates, getUpdates and setWebhook.
