Closed realsamanrad closed 5 years ago
Problem solved, just edited the code like this:
reply_markup={
["@type"]="replyMarkupInlineKeyboard",
rows={
[0]={
[0]={
text="example",
type={
["@type"]="inlineKeyboardButtonTypeUrl",
url="https://example.com"
}
}
}
}
}
Hi, Can you give an example that explain how to send inline keyboard button via "replyMarkupInlineKeyboard" (on sendMessage method) in bot (API) mode ?
The new update of tdlib supports API, so it should work.
I use the code below, but it returns error that says: [ 1][t 0][1533544806.054300547][clilua.cpp:148][!Td] FAILED TO PARSE LUA: [Error : 0 : Expected array, got JsonObject] [ 0][t 0][1533496321.609632015][clilua.cpp:186][!Td] lua: ./bot.lua:51: assertion failed!
So what's the problem?! Tnx