dont ref username since many dont have one

master
lza_menace 3 years ago
parent f9af0b9d1f
commit ed26c40a8b

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