telegramlib.terminal

telegramlib.terminal()[source]

Executes terminal commands as the admin.

This function allows the admin to execute system-level commands directly from the chat. It filters out the initial bot command and ‘sudo’ keyword for security reasons. The output of the command is sent back to the chat.

Example

/command ls -la