From e956800e343e4f71bb06f116b3e63f57289594b3 Mon Sep 17 00:00:00 2001 From: Mohammed Irfan Date: Sun, 29 May 2016 19:25:36 +0530 Subject: [PATCH] Fix inline demo code in readme.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8af51a6..245e412 100644 --- a/README.md +++ b/README.md @@ -379,8 +379,8 @@ def test_chosen(chosen_inline_result): @bot.inline_handler(lambda query: query.query == 'text') def query_text(inline_query): try: - r = types.InlineQueryResultArticle('1', 'Result', 'Result message.') - r2 = types.InlineQueryResultArticle('2', 'Result2', 'Result message2.') + r = types.InlineQueryResultArticle('1', 'Result', types.InputTextMessageContent('Result message.')) + r2 = types.InlineQueryResultArticle('2', 'Result2', types.InputTextMessageContent('Result message2.')) bot.answer_inline_query(inline_query.id, [r, r2]) except Exception as e: print(e)