answer_inline_query return error
Ironjanowar opened this issue · 0 comments
Ironjanowar commented
Trying to build an inline result leads to a weird error
message_text = %ExGram.Model.InputTextMessageContent{message_text: text}
result = %ExGram.Model.InlineQueryResultArticle{
input_message_content: message_text,
title: "Result 1",
id: 1,
type: "article"
}
ExGram.answer_inline_query(inline_query_id, [result]) |> inspect |> Logger.debug()
Here is the error:
{:error, "Some invariant of the method answerInlineQuery was not succesful, check the documentation"}
I checked the docs just in case and these are the objects we have to build to send an answer:
And of course the answerInlineQuery