K
K
Kxxiv2022-03-10 22:47:36
Python
Kxxiv, 2022-03-10 22:47:36

How to display data from different columns from SQLite3 database in telegram bot?

There was a problem that I can not display several columns in the telegram bot as a message of the type "First name" and "Last name" and so down until the list ends. I looked all over the Internet and found nothing.
Here's what the database looks like: https://imgur.com/3Ey9Wvy
I also have one more question. How to make it so that when a message is displayed at a certain moment, it moves to another line in telegrams?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kadabrov, 2022-03-10
@Kadabrov

1. Get data from the database, then write f'{data[1]} {data[2]}'
2. \n newline

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question