V
V
vtaeke2020-05-08 17:23:46
Python
vtaeke, 2020-05-08 17:23:46

How to connect database to telegram bot?

There is one idea with a bot in telegram.
It is necessary when you enter data into the bot so that they are saved in the database and the same data can be viewed by other users.
Created a bot skeleton in telegram. How to proceed. Write all the functionality of the bot in Python or something else?
How to connect the database further and which database is best to use in this matter?
I am puzzled by this question, I have not built anything like this before.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igromik, 2020-05-08
@IgromikBot

Try using the sqlite3 library

N
nzarchii60, 2020-05-09
@nzarchii60

import sqlite3

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question