dont ref username since many dont have one

This commit is contained in:
lza_menace 2021-05-19 13:29:22 -07:00
parent f9af0b9d1f
commit ed26c40a8b
1 changed files with 2 additions and 2 deletions

View File

@ -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()