From ed26c40a8b204339562ae8cedd0bf8dd7d653c91 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Wed, 19 May 2021 13:29:22 -0700 Subject: [PATCH] dont ref username since many dont have one --- tipbot/helpers/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tipbot/helpers/utils.py b/tipbot/helpers/utils.py index 0645853..4e28899 100644 --- a/tipbot/helpers/utils.py +++ b/tipbot/helpers/utils.py @@ -26,9 +26,9 @@ def reply_user(msg, context, text, pm=True, delete=False): else: msg.reply_text(text) except Unauthorized: - msg.reply_text(f'@{msg.from_user.username}: You have to initiate a convo with the bot first: https://t.me/{context.bot.username}') + msg.reply_text(f'You have to initiate a convo with the bot first: https://t.me/{context.bot.username}') except: - msg.reply_text(f'@{msg.from_user.username}: Something borked -_-') + msg.reply_text(f'Something borked -_-') if delete: msg.delete()