Closed Montoya closed 8 years ago
Hey!
[{ text: msg }]
is not valid, you can find answer types here: https://core.telegram.org/bots/api#inlinequeryresult
For your example you can use this:
tg.inlineMode(($) => {
var msg = $.query
tg.answerInlineQuery($.id, [{
type: "article",
title: msg,
input_message_content: {
message_text: msg
}
}])
})
Thank you! That fixed it. It works perfectly now :)
Hi, I'm trying to do something very simple with inlineMode and not getting any results...
Here's my code:
I already registered inlineMode with BotFather, by the way. When I try using inlineMode the spinner works for a while and then nothing happens. Not seeing any errors in the logs either...