S
S
ShamiLLL2020-11-23 21:24:17
Python
ShamiLLL, 2020-11-23 21:24:17

What python command will allow a VK bot to ignore user messages?

Which python command will allow you to ignore a message from the user? Those. if the bot in VK has a button on the keyboard with the name "1" and the user sends a message "1", then the bot is silent, and if the user presses the button with the name "1", then the bot works

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Ernest Faizullin, 2020-11-23
@ShamiLLL

when a person manually types the text "1", then a text_message message type (or something similar) arrives on the webhook,
and when a person clicks on a button with the text "1", then a callback_message message type arrives on the webhook,
so you can distinguish between a button press and manually typed text

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question