Answer the question
In order to leave comments, you need to log in
How to make a list generated by a telegram bot (aiogram + sql)?
Welcome all.
I want the bot (aiogram) to display a list of users from the SQLite database in the chat in the form of buttons (KeyboardButton) of the menu.
There are not many users, but they are not static.
I am still writing the main functionality, but I don’t even know how to approach this task.
Interested in how to implement the output of names in the form of buttons (not a request to the database).
I would be grateful for a hint.
Answer the question
In order to leave comments, you need to log in
You create a keyboard, add new buttons with the desired name from the database using for
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question