My goal is to create as many buttons as amounts of users with their names (SQL) , but problem is i don’t know the name of the function that cleans keyboard every time I call it
async def set_kb():
# here should be function
for i in db_show_players():
in_group_kb_players.add(InlineKeyboardButton(text=str(i[0]), callback_data=i[1]))
I tried .clean() but it didn’t work
2
Answers
I solved that. solution was simple damn.. there is no function that clears the keyboard so the variable should be local. in my case i imported that into other module which created this bug.