Forum > Third party

Shell remote via telegram bot

(1/2) > >>

Renat.Su:
Anyone interested to manage a remote computer (a web server or a regular computer with access to the Internet) via telegram client, I made a working example of the program with source code https://github.com/Al-Muhandis/ShellRemoteBot
Actively tested on Linux (Debian), but should work on Windows. Instead of webhooks, longpolling is used to get updates from telegram server, respectively, the program can work not only on a web server, but also on any home computer.
It is convenient to manage a web server via telegram in the phone (of course you can search for SSH client on the phone, but if you already have telegram, you can use this service).
The program can run as a console program that runs manually and as a service/daemon

Renat.Su:
Thanks to Edson for tips about SIGnals

Renat.Su:
Add HTTPS proxy support... ;)

If you want to add HTTP proxy support, then:

 +   add laz_synapse.lpk depending on the project
 +   add tgsynapsehttpclientbroker to the uses block
 +   set the proxy data in the INI file. Note: The native FPHTTPClient does not yet have full HTTPS proxy support. So in the case of synapse HTTP client, to make the HTTPs proxy work in Linux (laz_synapse.lpk v40.1), comment out the line in the blcksock.pas source unit of the synapse library. // Port := IntToStr(ResolvePort(Port));
https://forum.lazarus.freepascal.org/index.php/topic,43574.msg349074.html#msg349074

Renat.Su:
Made an update (https://github.com/Al-Muhandis/ShellRemoteBot#script-files-macros) in the Shell Remote bot. So you can save frequent scripts for managing your server for use by the inline button

BillyKerk:
wow...gret idea! Thank you for your work! A very useful solution. Telegram has become a multifunctional messenger that is developing into functional software ;)

Navigation

[0] Message Index

[#] Next page

Go to full version