Use named format parameter for alias/name templates

This commit is contained in:
Tulir Asokan
2018-01-28 12:23:22 +02:00
parent 6de82f10a0
commit 831851f118
4 changed files with 13 additions and 13 deletions
+6 -6
View File
@@ -30,14 +30,14 @@ appservice:
# Bridge config
bridge:
# Localpart template of MXIDs for Telegram users.
# {} is replaced with the user ID of the Telegram user.
username_template: "telegram_{}"
# {userid} is replaced with the user ID of the Telegram user.
username_template: "telegram_{userid}"
# Localpart template of room aliases for Telegram portal rooms.
# {} is replaced with the name part of the public channel/group invite link ( https://t.me/{} )
alias_template: "telegram_{}"
# {groupname} is replaced with the name part of the public channel/group invite link ( https://t.me/{} )
alias_template: "telegram_{groupname}"
# Displayname template for Telegram users.
# {} is replaced with the display name of the Telegram user.
displayname_template: "{} (Telegram)"
# {displayname} is replaced with the display name of the Telegram user.
displayname_template: "{displayname} (Telegram)"
# Set the preferred order of user identifiers which to use in the Matrix puppet display name.
# In the (hopefully unlikely) scenario that none of the given keys are found, the numeric user ID is used.