From 04bca6c6e17797581fe8b11b09b325be76fb2688 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Boris=20Daniel=20Martinez=20Mill=C3=A1n?= Date: Mon, 15 Mar 2021 20:30:01 -0400 Subject: [PATCH] Typing Commit --- bin_module.py | 1 + uptime_module.py | 1 + 2 files changed, 2 insertions(+) diff --git a/bin_module.py b/bin_module.py index e738791..b0681ec 100644 --- a/bin_module.py +++ b/bin_module.py @@ -19,6 +19,7 @@ from os import remove import requests,random,re,io 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=f['file_path'] ext=f.split('.')[len(f.split('.'))-1] diff --git a/uptime_module.py b/uptime_module.py index 3c37b31..3a1414f 100644 --- a/uptime_module.py +++ b/uptime_module.py @@ -4,5 +4,6 @@ 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""" + 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))