Answer the question
In order to leave comments, you need to log in
Ignore text after the command. Python. How to make it so that after the command 'I want', the bot will still execute the given command?
if event.text == "хочу" :
if event.from_chat:
str = event.text
array = str.split("хочу")
vk.messages.send(
chat_id=event.chat_id,
random_id=get_random_id(),
message="Передать " + array[1],
reply_to=event.message_id
)
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