Answer the question
In order to leave comments, you need to log in
Why is the bot not sending a message?
According to my idea, the bot should write the message "Hello, creator!" (when I write "Hello" in the chat)
But for some reason he does not do this, although my id is in the ilya variable
elif event.object.text == "Привет" :
ilya = event.object.from_id
#print(ilya)
if ilya == "270126576":
vk.method("messages.send", {"peer_id": event.object.peer_id, "message": 'Привет, создатель!', "random_id": 0})
else:
vk.method("messages.send", {"peer_id": event.object.peer_id, "message": 'Привет', "random_id": 0})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question