Skip to content

Conversation

@sujanyd
Copy link

@sujanyd sujanyd commented Nov 10, 2025

This PR adds support for using "direct" as the message type when sending private messages via the Zulip Python API CLI.

Key Changes:
• CLI now accepts "direct" as a valid message type (--type direct).
• Automatically translates "direct" → "private" for servers with API feature level < 174 (older servers).
• Keeps "direct" unchanged for newer servers (feature level ≥ 174).
• Logging updated to show the actual message type being sent.

Testing:
• Verified sending messages with "direct" and "private".
• Checked correct fallback for older servers.

Related Issue:
Fixes #779

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support using "direct" as the message "type" for private messages.

2 participants