Update fastapi_app.py
Browse files- fastapi_app.py +1 -1
fastapi_app.py
CHANGED
@@ -836,7 +836,7 @@ async def forward_messages_endpoint(chat_id: int, from_chat_id: int, message_ids
|
|
836 |
return {"messages": [msg.id for msg in messages]}
|
837 |
|
838 |
@app.post("/send_poll")
|
839 |
-
async def send_poll_endpoint(chat_id: int, question: str, options: list, is_anonymous: bool = False, type: str = "regular", allows_multiple_answers: bool = False, correct_option_id: int = None, explanation: str = None, explanation_parse_mode: None, open_period: int = None, close_date: int = None, is_closed: bool = False):
|
840 |
try:
|
841 |
message = await bot_instance.send_poll(
|
842 |
chat_id,
|
|
|
836 |
return {"messages": [msg.id for msg in messages]}
|
837 |
|
838 |
@app.post("/send_poll")
|
839 |
+
async def send_poll_endpoint(chat_id: int, question: str, options: list, is_anonymous: bool = False, type: str = "regular", allows_multiple_answers: bool = False, correct_option_id: int = None, explanation: str = None, explanation_parse_mode: None = None, open_period: int = None, close_date: int = None, is_closed: bool = False):
|
840 |
try:
|
841 |
message = await bot_instance.send_poll(
|
842 |
chat_id,
|