S
S
s_lim2020-09-15 09:54:25
ASP.NET
s_lim, 2020-09-15 09:54:25

What toolkit should be used to develop a Telegram bot on ASP.Net Core?

I would like to try my hand at developing bots for telegram. But offhand a number of questions arise:
1. How to organize the environment for development? This is especially true for debugging incoming messages.
2. Where is it cheaper (or better free) to deploy a bot?
3. How to organize, when deploying, a webhook? This is especially true for https and all sorts of certificates there (as far as I know they are needed).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
FreeBa, 2020-09-17
@s_lim

1. Visual Studio Community - everything you need is there.
2. Asp.net Core, in principle, is deployed on Linux, so you can use almost any server. Some hosts offer free options as well. Googled for "linux vps free".
3. The most elementary - docker in an embrace with Azure - there they will give a certificate for free. If you want your own vps, then you can use the free https://letsencrypt.org/ , it will do.
PS: a small nuance - when using popular Nuget packages for working with telegrams (like Telegram.Bot), be sure to switch from System.Text.Json (it is used by default in asp.net core 3.0 and older) to Newtonsoft.Json. Otherwise, you can spend several fascinating hours figuring out why empty messages are coming.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question