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 ))