M
M
Mejkiz2022-01-28 12:28:06
Python
Mejkiz, 2022-01-28 12:28:06

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, "Нет доступа")

Wrote with vk_api.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WolfInChains, 2022-01-28
@Mejkiz

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 question

Ask a Question

731 491 924 answers to any question