Skip to content

Commit 898b322

Browse files
docs: fix answer_guest_query example
1 parent f748667 commit 898b322

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

pyrogram/methods/bots/answer_guest_query.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
# You should have received a copy of the GNU Lesser General Public License
1717
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
1818

19-
from typing import Iterable
20-
2119
import pyrogram
2220
from pyrogram import raw, types
2321

@@ -47,10 +45,11 @@ async def answer_guest_query(
4745
4846
await app.answer_guest_query(
4947
guest_query_id,
50-
results=[
51-
InlineQueryResultArticle(
52-
"Title",
53-
InputTextMessageContent("Message content"))])
48+
result=InlineQueryResultArticle(
49+
"Title",
50+
InputTextMessageContent("Message content")
51+
),
52+
)
5453
"""
5554
r = await self.invoke(
5655
raw.functions.messages.SetBotGuestChatResult(

0 commit comments

Comments
 (0)