B4J Question jTelegramBot inline keyboard

Ilya G.

Active Member
Licensed User
Longtime User
why this code does not display the keyboard?

B4X:
Private ibld As InlineKeyboardButtonBuilder, imark As InlineKeyboardMarkup

'does not work
ibld.Initialize
Do While Cursor.NextRow
    ibld.newRow.newButton(Cursor.GetString("ip")).withCallbackData(Cursor.GetString("ip"))
Loop
imark.initialize(ibld.newRow.build)
JTB.sendMessage(JTB.byId(from.Id), "Выберите хост:", "MARKDOWN", False, False, Null, imark)

' this work
imark.initialize(ibld.Initialize.newRow.newButton("1").withCallbackData("8.8.8.8").newRow.newButton("2").withCallbackData("2").newRow.build)
JTB.sendMessage(JTB.byId(from.Id), "Выберите хост:", "MARKDOWN", False, False, Null, imark)
 
Top