D
D
dr3adew2021-01-15 06:17:34
Python
dr3adew, 2021-01-15 06:17:34

How to make message waiting?

I need to write the creation of promo codes, for example:

If event.text.lower() == 'Promo code':
send_message(peer_id=event.obj.peer_id, message='Write the name of the promo code')

How to make it wait for the next message with the name of the promo code from the user ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
Zanak, 2021-01-15
@Zanak

If this

If event.text.lower() == ‘Промокод’:
    ...

copy-paste from your attempt to solve the issue, then the condition will never work.
VKontakte is not an expert on api, but a plausible answer is easily googled.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question