Answer the question
In order to leave comments, you need to log in
What should I do if the bot ignores a message that starts with @ & symbols?
If in text.lower() == the first letter is capitalized or some character like @ % &, the bot ignores your request.
if text.lower() == '@id24159122':
try:
vk.messages.send(
chat_id=event.chat_id,
message='Сообщение', #ответ бота
random_id=get_random_id(),
)
except Exception as e:
print ("Ошибка")
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