79528516

Date: 2025-03-23 05:57:44
Score: 0.5
Natty:
Report link
cur.execute("SELECT * FROM channals")
rows = cur.fetchall()
con.close()
board = InlineKeyboardBuilder()
    try:
        for row in rows:
            board.add(types.InlineKeyboardButton(text=f"{row[2]}", callback_data=f"chan:{row[0]}"))
            board.add(types.InlineKeyboardButton(text="➕Добавить канал➕", callback_data="channal_plus"))
            board.add(types.InlineKeyboardButton(text="➖Удалить канал➖", callback_data="channal_minus"))
            board.add(types.InlineKeyboardButton(text="↪️В начало↩️", callback_data="ok"))
            board.adjust(*[1] * len(rows), 2, 1)

like this
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: dvr2d2