D
D
Dream2021-07-15 14:44:18
In contact with
Dream, 2021-07-15 14:44:18

How to make a separate "tab" in the bot?

How to make it so that when the tab "Promo codes" the menu (keyboard) is removed and the keyboard is added with only 1 button back (to return to the menu), in the tab "Promo codes" it is possible to enter only promotional codes (which would be checked against the database, I did this ), but the commands and the rest did not react, only to the back button.

I use: vk_api, python

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
slikkness, 2021-07-15
@dreameddd

Assign a status to the user, for example, when he clicks on the Promo Codes button, change his status in the database to "promo" and send a new keyboard with only one button, and check that if he has this status, then he will not respond to other commands

H
HemulGM, 2021-07-15
@HemulGM

Do as you wish. You have the tools and opportunities.
Of the possibilities you have - sending a message with buttons (keyboard). This is the only way you can change the buttons.
Do you hear what I mean?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question