A
A
ArsenBor662018-12-14 18:04:34
ASP.NET
ArsenBor66, 2018-12-14 18:04:34

Do I need to use ASP.NET to write a full-fledged telegram bot in c#?

As far as I know, you can write a telegram bot in a regular console application, but asp.net is used for such tasks. Is it justified?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
Tom Nolane, 2018-12-14
@ArsenBor66

the bot can be written at least on anything, it depends on the "wants" and the possibilities.
ASP.NET is just one of the tools (but not the most necessary for this).
ASP is used for serious web applications, for some broad purposes. It is not rational to create a bot only using ASP. For these purposes, something simpler is also suitable - php, node.js ...
but if it is supposed to be used as a service, where the bot will be accessed 1k once a day, then yes .. you can also use ASP
to get acquainted with ASP ( and c#) (part of the functionality) you can try ... Again, it depends on the needs and capabilities of the
PS . if hosting in the Russian Federation (Russian IP) we wash telegrams will not work due to Roskomnadzor... you will need a proxy/VPN/foreign VPS

A
Alibek Beldinov, 2018-12-14
@Neuyazvimy1

A telegram bot needs a good http client, since telegram is responsible for receiving and transmitting messages. And we only use its api.
Here is a good http client for c#
https://github.com/restsharp/RestSharp
https://core.telegram.org/bots/api

A
Alexander, 2018-12-14
@alexr64

https://github.com/TelegramBots/Telegram.Bot
I won't even write anything, take it and use it. without any asp

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question