W
W
wildboys902021-04-13 09:55:24
MySQL
wildboys90, 2021-04-13 09:55:24

Is it possible to create a telegram bot that works with MySQL database?

Is it possible to create a telegram bot that reads data from a MySQL database through a search (by keywords)? For example, if you send a request to the bot for the inventory number of the equipment, it gave out the full data of the serial number, which department it belongs to. This table is already in the database. You just need to connect the base to the bot via Python (I write the code via PyCharm).

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Daniil Gorbenko, 2021-04-13
@daniilgorbenko

Yes, you can use PyMySQL to connect to the database
. Further, when you receive messages from a person, you simply make a query to this database and get the necessary data

R
Rerurk, 2021-04-13
@Rerurk

You can, on the go, pretty fast

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question