Documentation and cleanup

pull/6/head
Michael D. M. Dryden 2021-06-06 23:02:06 -04:00
rodzic ab51722ebc
commit cf9b85a363
2 zmienionych plików z 8 dodań i 2 usunięć

Wyświetl plik

@ -173,7 +173,14 @@ def print_stats(update: Update, context: CallbackContext):
context.bot.send_photo(chat_id=update.effective_chat.id, photo=image)
def send_help(text, context, update):
def send_help(text: str, context: CallbackContext, update: Update):
"""
Send help text to user. Tries to send a direct message if possible.
:param text: text to send
:param context:
:param update:
:return:
"""
try:
context.bot.send_message(chat_id=update.effective_user.id,
text=f"```\n{text}\n```",

Wyświetl plik

@ -139,7 +139,6 @@ class StatsRunner(object):
:param n: Number of users to show
:param start: Start timestamp (e.g. 2019, 2019-01, 2019-01-01, "2019-01-01 14:21")
:param end: End timestamp (e.g. 2019, 2019-01, 2019-01-01, "2019-01-01 14:21")
:return:
"""
date_query = None
sql_dict = {}