I
I
Ilya55272022-01-31 18:00:46
Java
Ilya5527, 2022-01-31 18:00:46

How to put java telegram bot on windows server?

Good evening, I bought a virtual server on first byte hosting, they gave me remote access to windows server 2016, where I can put my telegram bot.
So the question is, how can I do this?
There is simply no access to the browser to download the jdk and download the jar file.
What should I do, tell me please!
thanks for answers

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rPman, 2022-01-31
@Ilya5527

Apparently, you fell into the classic trap of a beginner - you know and know only windows, but you didn’t have enough money for a full-fledged hosting and bought castrated (without gui) it is usually cheap, about 200-300r and as a result you got one single console?
In windows, the console is very miserable, thanks to powershell, you can use it to perform tasks, for example, download a file from a link

Invoke-WebRequest -Uri "http://example.com/file.ext" -OutFile "C:\path\myfile.ext"

ps I strongly recommend not to fool around and immediately study linux-based hosting, this is actually the gold standard in the world, and most of the ready-made tools - there, in
order to transfer files to linux hosting, you need to have some kind of server running on it and it should be accessible by ip address (and the port, sometimes cheap hosters change the port from the standard one), in linux it's ssh
using ssh you connect to the hosting, and you can also copy files back and forth (scp) so utilities like rsync or the same git can work with it so you have a lot of options to choose from.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question