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