T
T
TimBirukov2019-01-12 16:51:40
Python
TimBirukov, 2019-01-12 16:51:40

How to link a database to a telegram bot? And which one is better to use?

Hey! I wrote a simple Telegram bot in Python in PyCharm, the essence of which is to respond with information about a person. For example, the bot will respond to a message from the user "Alexander Sergeevich Pushkin" with information about him. There is a lot of text and it will be edited often, so the creation of a database comes to mind, from which the bot will take information and send it to the user. What is the best free database to use? And how does the database binding itself happen in the code? How to import and where to start?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vyacheslav, 2019-01-12
@slavos1sss

I think SQLite
It's better to start by reading the corresponding chapter in the book "Python 3 Essentials" (authors N. Prokhorenok, V. Dronov)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question