Typing Commit

This commit is contained in:
Boris Daniel Martinez Millán 2021-03-15 20:30:01 -04:00
parent 463cf9bc05
commit 04bca6c6e1
2 changed files with 2 additions and 0 deletions

View File

@ -19,6 +19,7 @@ from os import remove
import requests,random,re,io import requests,random,re,io
def imagebin(update: Update, context: CallbackContext) -> None: def imagebin(update: Update, context: CallbackContext) -> None:
context.bot.send_chat_action(chat_id=update.message.chat_id, action=telegram.ChatAction.TYPING)
f=update.message.photo[0].get_file() f=update.message.photo[0].get_file()
f=f['file_path'] f=f['file_path']
ext=f.split('.')[len(f.split('.'))-1] ext=f.split('.')[len(f.split('.'))-1]

View File

@ -4,5 +4,6 @@ from telegram.ext import Updater, CallbackContext
def uptime(update: Update,context: 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""" """Uptime es un modulo solo compatible con linux que permite ver el tiempo desde que se encendio la pc"""
context.bot.send_chat_action(chat_id=update.message.chat_id, action=telegram.ChatAction.TYPING)
update.message.reply_text(subprocess.check_output('uptime',shell=True,universal_newlines=True)) update.message.reply_text(subprocess.check_output('uptime',shell=True,universal_newlines=True))