D
D
Dexter_Smith2020-11-12 16:48:02
Python
Dexter_Smith, 2020-11-12 16:48:02

Need to output information from SQLite to Python for Telegram bot PyTelegramBotAPI?

Is there a database, how to implement it so that, at the request of the user, information from the database is displayed in the chat?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Karbivnichy, 2020-11-12
@hottabxp

Write the code for you?
Or maybe google it like this: "python sqlite" sqlite
module - Working with the database

I
Ivan, 2020-11-12
@mlneko

c.execute('SELECT * FROM table_name WHERE value1 = value2')
result = c.fetchall()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question