R
R
ripjakeyh2019-07-01 15:59:00
Python
ripjakeyh, 2019-07-01 15:59:00

Waiting for confirmation on a Vkontakte message (python)?

I use vk_api.bot_longpoll

if event.type == VkBotEventType.MESSAGE_NEW:
    if event.from_user:
        if response == "/message":
            vk.method('messages.send', {'user_id': peer_id, 'message': 'Введи сообщение:', 'random_id': 0})
            #Ожидание новой проверки на сообщение, вложенное в это (нельзя вызвать, если не исполнена команда /message)

Perhaps I did not explain clearly, if so, then write what is not clear, I will answer. Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
Uno, 2019-07-01
@Noizefan

You need to put a flag in the database and check it.
How to perform sequential write to mysql via telegram bot (php-telegram-bot)?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question