K
K
Kaccup2021-09-25 17:27:29
Chats
Kaccup, 2021-09-25 17:27:29

How to catch a specific word from a sentence, for example: Went to. How to make the bot react to one word?

for example: Went to ...
how to make the bot(dp) react to checkmate, and not to Went to.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
FOUREX, 2021-09-25
@FOUREX

if "Пошёл" in message:
    await message.delete()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question