From ad521b316369965437b8c55a9044927aea004115 Mon Sep 17 00:00:00 2001 From: Lonami Date: Thu, 15 Jun 2017 17:14:36 +0200 Subject: [PATCH] Let get_input_peer do its magic --- Talking-to-inline-bots.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Talking-to-inline-bots.md b/Talking-to-inline-bots.md index 3abf45e..1140c85 100644 --- a/Talking-to-inline-bots.md +++ b/Talking-to-inline-bots.md @@ -2,10 +2,9 @@ You can query an inline bot, such as [@vote](https://t.me/vote), by making use o ```python from telethon.tl.functions.messages import GetInlineBotResultsRequest -from telethon.helpers import get_input_peer bot_results = client.invoke(GetInlineBotResultsRequest( - get_input_peer(bot), get_input_peer(user_or_chat), 'query', '' + bot, user_or_chat, 'query', '' )) ``` @@ -13,11 +12,9 @@ And you can reply to their results by using [`SendInlineBotResultRequest`](https ```python from telethon.tl.functions.messages import SendInlineBotResultRequest -from telethon.utils import generate_random_long client.invoke(SendInlineBotResultRequest( get_input_peer(user_or_chat), - generate_random_long(), obtained_query_id, obtained_str_id ))