mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
pyrofork: Update send_poll example
Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
parent
a95517fa19
commit
47ede16039
1 changed files with 11 additions and 1 deletions
|
|
@ -172,7 +172,17 @@ class SendPoll:
|
||||||
Example:
|
Example:
|
||||||
.. code-block:: python
|
.. 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(
|
reply_to = await utils.get_reply_to(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue