Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

examples-python-api: Fix `message_id` type.

LoopThrough-i-jd1ee2d31c72c
diff --git a/zerver/openapi/python_examples.py b/zerver/openapi/python_examples.py
index 90e3824bd51..0bdd9d27c55 100644
--- a/zerver/openapi/python_examples.py
+++ b/zerver/openapi/python_examples.py
@@ -783,10 +783,11 @@ def send_message(client: Client) -> int:
@openapi_test_function("/messages/{message_id}/reactions:post")
def add_reaction(client: Client, message_id: int) -> None:
+ request: Dict[str, Any] = {}
# {code_example|start}
# Add an emoji reaction
request = {
- "message_id": str(message_id),
+ "message_id": message_id,
"emoji_name": "octopus",
}
@@ -797,10 +798,11 @@ def add_reaction(client: Client, message_id: int) -> None:
@openapi_test_function("/messages/{message_id}/reactions:delete")
def remove_reaction(client: Client, message_id: int) -> None:
+ request: Dict[str, Any] = {}
# {code_example|start}
# Remove an emoji reaction
request = {
- "message_id": str(message_id),
+ "message_id": message_id,
"emoji_name": "octopus",
}