Answer the question
In order to leave comments, you need to log in
Why does the check for the VK admin bot not work?
I wrote a verification code for the id if the id is equal to mine, then the command is executed if it does not equal it says that there is no access. But for some reason, it doesn't matter if the id is equal to it denies access.
Here is the code:
elif messenge == 'ping':
if id == 'Мой айди':
messg(id, "Понг")
else:
messg(id, "Нет доступа")
Answer the question
In order to leave comments, you need to log in
Instead of
Need
, the ID comes as a number, not a string. if id == '444325855':
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question