remove Hello from report

This commit is contained in:
Rykov7
2023-01-21 06:22:42 +03:00
parent 3c5605d390
commit d98b754cbf
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -300,7 +300,9 @@ def remove_stan_quote(message):
@bot.message_handler(func=is_admin, commands=['stats'])
def send_stats(message: types.Message):
if len(message.text.split()) == 1:
bot.send_message(message.chat.id, report.create_report_text(message.chat.id))
rep = report.create_report_text(message.chat.id)
if rep:
bot.send_message(message.chat.id, rep)
else:
bot.send_message(message.chat.id, report.create_report_text(message.text.split()[-1]))