Answer the question
In order to leave comments, you need to log in
How to write a bot via webhook?
Hello. I'm just new to Python programming, and indeed in general. I make and run bots for Telegram on my PC. As I understand it, this method is called getUpdates., but usually bots are made via Webhook and uploaded to the server. Can someone explain the basic things of creating a telegram bot in Python via Webhook? Or at least give a tip where you can fully get the information on this matter. What is the difference between the code and getUpdates, how to adapt to the server, and how to choose this server. At least something that can make it easier to understand.
Answer the question
In order to leave comments, you need to log in
Read in the official documentation.
Briefly: either the bot makes getUpdates requests to receive new data, or the bot is a web server with an address for which Telegram can pull it when a new event occurs. The first is much easier to organize and is more than enough for small bots with not very significant traffic.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question