Telegram.Bot icon indicating copy to clipboard operation
Telegram.Bot copied to clipboard

Bad request: Can't find field "message_text"

Open javadmjt opened this issue 10 years ago • 2 comments

When using AnswerInlineQuery. Error Can not find field "message_text" happen. There is no field named message_text in InlineQueryResultArticle to set

what should i do

            InlineQuery query = update.InlineQuery;
            if (query != null)
            {
                InlineQueryResult[] results = new InlineQueryResult[1];
                InlineQueryResultArticle result = new InlineQueryResultArticle();
                var myId = "123";
                result.Title = "test";
                result.Id = myId;
                results[0] = result;

                await Bot.AnswerInlineQuery(query.Id, results);
            }

javadmjt avatar Jun 25 '16 11:06 javadmjt

see https://github.com/MrRoundRobin/telegram.bot/issues/182 I just modified InlineQueryResultNew

koroteeww avatar Jun 28 '16 13:06 koroteeww

tnx

javadmjt avatar Jun 28 '16 20:06 javadmjt