not show message if not have permissions
This commit is contained in:
parent
05685cd51a
commit
2f9337161d
2
main.py
2
main.py
@ -56,7 +56,7 @@ def handle_file(message):
|
|||||||
else:
|
else:
|
||||||
bot.reply_to(message, "What is it?")
|
bot.reply_to(message, "What is it?")
|
||||||
else:
|
else:
|
||||||
bot.send_message(message.chat.id, 'Тебе сюда нельзя. Твой ID: ' + str(message.chat.id))
|
pass
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
bot.reply_to(message,e )
|
bot.reply_to(message,e )
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user