pyrofork: Update send_poll example

Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
wulan17 2024-07-02 15:45:47 +07:00
parent a95517fa19
commit 47ede16039
No known key found for this signature in database
GPG key ID: 318CD6CD3A6AC0A5

View file

@ -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(