From db39e094f83847bf614e4b76bd01bfe346e1e079 Mon Sep 17 00:00:00 2001 From: Lonami Date: Sun, 9 Jul 2017 12:49:59 +0200 Subject: [PATCH] Use __call__() instead invoke() --- Talking-to-inline-bots.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Talking-to-inline-bots.md b/Talking-to-inline-bots.md index 2e256af..a4654df 100644 --- a/Talking-to-inline-bots.md +++ b/Talking-to-inline-bots.md @@ -3,7 +3,7 @@ You can query an inline bot, such as [@VoteBot](https://t.me/vote) (note, *query ```python from telethon.tl.functions.messages import GetInlineBotResultsRequest -bot_results = client.invoke(GetInlineBotResultsRequest( +bot_results = client(GetInlineBotResultsRequest( bot, user_or_chat, 'query', '' )) ``` @@ -13,7 +13,7 @@ And you can select any of their results by using [`SendInlineBotResultRequest`]( ```python from telethon.tl.functions.messages import SendInlineBotResultRequest -client.invoke(SendInlineBotResultRequest( +client(SendInlineBotResultRequest( get_input_peer(user_or_chat), obtained_query_id, obtained_str_id @@ -27,7 +27,7 @@ To interact with a message that has a special reply markup, such as [@VoteBot](h ```python from telethon.tl.functions.messages import GetBotCallbackAnswerRequest -client.invoke(GetBotCallbackAnswerRequest( +client(GetBotCallbackAnswerRequest( user_or_chat, msg.id, data=msg.reply_markup.rows[wanted_row].buttons[wanted_button].data