Telegram.Bot icon indicating copy to clipboard operation
Telegram.Bot copied to clipboard

getUpdates is good for develop?

Open nabeghe opened this issue 10 years ago • 4 comments

Hi if i using getUpdates method for develop a windows software is good or bad? and then running app on vps

nabeghe avatar Oct 13 '16 22:10 nabeghe

hi, By using getUpdates, you will use more resources from your server (Hots, vps,...). Also you should setup and configure your IIS and write lots of algorithms to handle your code. I will suggest you to use WebHook if you want to have a real-time and professional bot with high performance.

matiuspico avatar Oct 28 '16 11:10 matiuspico

Hello nabeghe,

This mostly depends on personal preference. I prefer building my bot against webhooks, and then deploying them to a (free) Azure website, which will automatically be booted (in ~10 seconds) when someone talks to the bot.

Kind regards, Martijn Verbakel

mhverbakel avatar Oct 28 '16 13:10 mhverbakel

@mhverbakel , my question about hosting on Azure: if i use webhook at bot: the CPU time utilized only when bot calculate answer?

LightVolk avatar Jan 21 '17 12:01 LightVolk

You pay for the time that the VM behind the website is up, which is as long as your application is deployed. So even when the website goes to sleep, you are still paying for it.

mhverbakel avatar Jan 23 '17 10:01 mhverbakel