Answer the question
In order to leave comments, you need to log in
How to find data in a file?
Hello.
There is a bot written in python.
And there is a file that contains data about people, full name and phone number, the data goes line by line.
How to format the code correctly so that by writing a bot just a first or last name, it would send matches in response?
I edit the text like this:
@bot.message_handler(content_types=['text'])
def text_msg(message):
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question