bots: Add a setting to customize the Welcome Bot message.

This commit includes the following changes:
- Add an administrator setting to customize the Welcome Bot
message when sending an invitation.
- Add an API endpoint to test the customized Welcome Bot message
by sending a copy of the message to the administrator.

Fixes #27663.

Co-authored-by: Akarsh Jain <akarsh.jain.790@gmail.com>
This commit is contained in:
Saubhagya Patel
2025-07-30 19:57:50 +05:30
committed by Tim Abbott
parent 4cafe5f77c
commit bb5c87e306
35 changed files with 988 additions and 32 deletions

View File

@@ -4333,6 +4333,10 @@ class RealmPropertyActionTest(BaseAction):
bool_tests: list[bool] = [True, False, True]
test_values: dict[str, Any] = dict(
default_language=["es", "de", "en"],
welcome_message_custom_text=[
"Welcome Bot Custom Message",
"New Welcome Bot Custom Message",
],
description=["Realm description", "New description"],
digest_weekday=[0, 1, 2],
message_edit_history_visibility_policy=Realm.MESSAGE_EDIT_HISTORY_VISIBILITY_POLICY_TYPES,