Telegram API has returned the error. (ok: "false", error_code: "400", description: "Bad Request: can't parse inline query result: Field "input_message_content" must be of type Object")
However field "input_message_content" is optional, and not to be send, if i dont set it.
When i update gem from 0.15 to latest 0.19.2, i have errors on sending AnswerInlineQuery:
(ruby 2.7.3)
results.push Telegram::Bot::Types::InlineQueryResultCachedMpeg4Gif.new(
id: row.id,
mpeg4_file_id: row.name
)
bot.api.answer_inline_query(inline_query_id: query_id, results: results, cache_time: 0) if !results.nil?
I have error:
Telegram API has returned the error. (ok: "false", error_code: "400", description: "Bad Request: can't parse inline query result: Field "input_message_content" must be of type Object")
However field "input_message_content" is optional, and not to be send, if i dont set it.
Thanks!