I'm trying to build menu in telegram using python-telegram-bot module and in it's sample there is:
button_list = [
InlineKeyboardButton("col 1", ...),
InlineKeyboardButton("col 2", ...),
InlineKeyboardButton("row 2", ...)
]
reply_markup = InlineKeyboardMarkup(util.build_menu(button_list, n_cols=2))
bot.send_message(..., "A two-column menu", reply_markup=reply_markup)
I get this error:
NameError: global name 'util' is not defined
I couldn't fine the import for that in the samples and it's not recognized there.
what should I exactly import?