S
S
Scrim2021-03-26 13:22:28
Database design
Scrim, 2021-03-26 13:22:28

How can I get new data from a database table in a telegram bot?

The task is that I add a list of goods to the database table from my web application, how can I track these additions from the telegram bot and select them? I thought about a loop that every 5 minutes will check the number of rows in this table, but for some reason it seems to me
not very correct

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stefan, 2021-03-26
@MEDIOFF

Write a small service on flask, next to the bot, make an API method that when they pull it means you need to request data, and when updating records in the database, just pull this method the same way and that's it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question