T
T
tvoypsheni4ka2022-01-16 17:37:41
linux
tvoypsheni4ka, 2022-01-16 17:37:41

It is necessary to connect the telegram bot to the Linux server to manage it, how to do it?

It is necessary that the inline button be able to send commands to the server, for example: import, view the contents of the server file and export it.
Library telegrambotAPI - telebot
how to implement commands in the script itself is unclear to me ..

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolai Turnaviotov, 2022-02-02
@foxmuldercp

running a linux server is best done by more secure and tested standard means, all these bots tend to get hacked (especially if badly written) or crash at the wrong moment - do you need it?
If you just play around to learn - learn how to simply execute a command as a user without privileges - ls, pwd, cat $ textfile, $ uptime

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question