From 47ede16039d67ad5c7957421dc1930c28d15e66c Mon Sep 17 00:00:00 2001 From: wulan17 Date: Tue, 2 Jul 2024 15:45:47 +0700 Subject: [PATCH] pyrofork: Update send_poll example Signed-off-by: wulan17 --- pyrogram/methods/messages/send_poll.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pyrogram/methods/messages/send_poll.py b/pyrogram/methods/messages/send_poll.py index 0071fe5a..c4b049b0 100644 --- a/pyrogram/methods/messages/send_poll.py +++ b/pyrogram/methods/messages/send_poll.py @@ -172,7 +172,17 @@ class SendPoll: Example: .. code-block:: python - await app.send_poll(chat_id, "Is this a poll question?", ["Yes", "No", "Maybe"]) + from pyrogram.types import PollOption + + await app.send_poll( + chat_id, + "Is this a poll question?", + [ + PollOption("Yes"), + PollOption("No"), + PollOption("Maybe") + ] + ) """ reply_to = await utils.get_reply_to(