Add configuration for basic message formats

Fixes https://github.com/tulir/mautrix-telegram/issues/92
This commit is contained in:
Travis Ralston
2018-06-07 13:29:48 -06:00
parent 7029102c0f
commit 0d264e09a8
3 changed files with 32 additions and 5 deletions
+9
View File
@@ -115,6 +115,15 @@ bridge:
# WARNING: Probably buggy, might get stuck in infinite loop.
catch_up: false
# The formats to use when sending messages to Telegram via the relay bot.
# Available variables:
# $sender_display_name - The display name of the sender
# $message - The message text itself
message_formats:
m_text:
plain: "<$sender_display_name> $message"
html: "&lt;$sender_display_name&gt; $message"
filter:
# Filter mode to use. Either "blacklist" or "whitelist".
# If the mode is "blacklist", the listed chats will never be bridged. An empty blacklist disables the filter.