V
V
vadimeasy2021-12-24 22:53:54
Python
vadimeasy, 2021-12-24 22:53:54

How to set up a telegram bot to respond to messages containing keywords?

Hello everyone, I came up with an idea to make a bot that can be used by technical support. I want to implement an algorithm for responding to messages from a user by keywords. For example, to find a more specific set of words in a message and give the result to the user. I would like to hear from more experienced programmers, whether the correct solution would be to use such a system for responding to messages, or maybe there is some kind of library or AI that can be customized for certain words. I would be grateful for any information on this subject. Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kapp1, 2021-12-24
@kapp1

The easiest way is through regular expression patterns. So you can conveniently work with endings and word order

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question