J
J
Just1n2018-11-02 12:19:24
Python
Just1n, 2018-11-02 12:19:24

How to start searching by user's message in VK Callback API?

There is a VKontakte bot on the Callback API, you need to make sure that, for example, if the user wrote "Gif * word *", then the bot sent him gifs in the name of which there is this word. You need to use the docs.search method , in which the "q" parameter takes the value that the user will set for him in his message.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Floydreme, 2018-11-02
@FloydReme

Use regular expressions. Put what the user wrote into a separate variable

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question