mirror of
https://git.wownero.com/lza_menace/tg-bot.git
synced 2024-08-15 00:23:12 +00:00
dont ref username since many dont have one
This commit is contained in:
parent
f9af0b9d1f
commit
ed26c40a8b
1 changed files with 2 additions and 2 deletions
|
@ -26,9 +26,9 @@ def reply_user(msg, context, text, pm=True, delete=False):
|
||||||
else:
|
else:
|
||||||
msg.reply_text(text)
|
msg.reply_text(text)
|
||||||
except Unauthorized:
|
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:
|
except:
|
||||||
msg.reply_text(f'@{msg.from_user.username}: Something borked -_-')
|
msg.reply_text(f'Something borked -_-')
|
||||||
|
|
||||||
if delete:
|
if delete:
|
||||||
msg.delete()
|
msg.delete()
|
||||||
|
|
Loading…
Reference in a new issue