You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
325 B
Python
9 lines
325 B
Python
![]()
2 years ago
|
import subprocess
|
||
|
from telegram import Update
|
||
|
from telegram.ext import Updater, CallbackContext
|
||
|
|
||
|
def uptime(update: Update,context: CallbackContext):
|
||
|
"""Uptime es un modulo solo compatible con linux que permite ver el tiempo desde que se encendio la pc"""
|
||
|
update.message.reply_text(subprocess_output('uptime',shell=True))
|
||
|
|