F
F
fedosssss2020-07-25 19:09:28
Python
fedosssss, 2020-07-25 19:09:28

I sent a message to the bot - it puts it in text (tkinter), I send a second message - the bot replaces the previous one, and so on endlessly. How to do?

I write to the bot "1" - it inserts into text or Label.
I write "2" to the bot - it deletes "1" and inserts "2" there. Who will help to implement it? The bot is written in python, through vk_api. Listening is done through longpool. Thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lynatik001, 2020-07-25
@fedosssss

What's stopping you from using it? rather than describe in stages just "change" the message

vk.messages.edit(
                peer_id=event.peer_id,
                message_id=event.message_id + 1,
                message=f'Вы выбрали {choose}:'
            )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question