T
T
TechNOIR2017-08-17 10:58:41
PowerShell
TechNOIR, 2017-08-17 10:58:41

Telegram + Powershell. How to check server availability using a bot?

Good afternoon.
I am mastering the Telegram Bot API and, as an option, I would like to check the availability of the server through the bot using my favorite Powershell :)
That is, let's write to the bot /ping server_name or /ping ip_server. The
bot receives the command, executes either Test-Connection or Ping and returns the result back to the user who wrote the command.
I found an example on Habré, but there the ping of the list of servers from the textbook and the sources of these examples were deleted.
Maybe someone has examples of this implementation? Is it even possible to implement?
thanks in advance

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question