So, I'm trying to make a bot in Telegram (training for future assignments). I'm using pyTelegramBotAPI and sqlite3, and I've got a question in process. I have created a database (example.db) and an inline button, and now I need to connect this database to a bot, and make it read db's contents (table with a list in it), and print them in message as an answer to a pressed button. F.E.: Message would be like this: "You have a list of things here: 1) Num.1 2) Num.2 .." And a whole list like that.
I'd be glad to hear any advices and code examples, thank you very much.