From 40d2fa426e2b7908244a9fbd2286a952a459ce61 Mon Sep 17 00:00:00 2001 From: mario Date: Mon, 13 Nov 2023 21:44:17 +0100 Subject: [PATCH] Add matterbridge.toml --- matterbridge.toml | 82 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 matterbridge.toml diff --git a/matterbridge.toml b/matterbridge.toml new file mode 100644 index 0000000..130f7a9 --- /dev/null +++ b/matterbridge.toml @@ -0,0 +1,82 @@ +# / +# SERVERS +# / + +# Sezione dedicata alle impostazioni di Telegram +[telegram] + [telegram.mytelegram] + # Token fornito da BotFather per il tuo bot Telegram + Token="your_token_from_botfather" + + # Formato del nickname remoto, come verrà mostrato il tuo messaggio quando è inoltrato + RemoteNickFormat="<{NICK}> " + + # Formato del messaggio + MessageFormat="HTMLNick :" + + # Formato per le citazioni nei messaggi + QuoteFormat="{MESSAGE} (re @{QUOTENICK}: {QUOTEMESSAGE})" + + # Limite di lunghezza per le citazioni, per evitare messaggi troppo lunghi + QuoteLengthLimit=46 + + # Ignora i messaggi che iniziano con "/", tipicamente comandi bot + IgnoreMessages="^/" + +# Sezione dedicata alle impostazioni di XMPP +[xmpp] + [xmpp.myxmpp] + # Indirizzo del server XMPP + Server="jabber.example.com:5222" + + # ID utente per l'accesso a XMPP + Jid="user@example.com" + + # Password per l'accesso a XMPP + Password="yourpass" + + # Indirizzo per la conferenza MUC su XMPP + Muc="conference.jabber.example.com" + + # Nickname del bot su XMPP + Nick="xmppbot" + + # Formato del nickname remoto per XMPP + RemoteNickFormat="[{PROTOCOL}] <{NICK}> " + +# / +# GATEWAYS +# / + +# Configurazione del gateway per il collegamento tra canali +[[gateway]] +# Nome unico per il gateway +name="YourUniqueGateWayName" +# Attiva o disattiva il gateway +enable=true + + # Impostazioni di input/output per il gateway + [[gateway.inout]] + # Account Telegram collegato + account="telegram.mytelegram" + # ID del canale Telegram + channel="-100xxx" + + [[gateway.inout]] + # Account XMPP collegato + account="xmpp.myxmpp" + # Nome del canale XMPP + channel="channel-name" + +[[gateway]] +# Altra configurazione del gateway con le stesse impostazioni +name="YourUniqueGateWayName" +enable=true + + [[gateway.inout]] + account="telegram.mytelegram" + channel="-100xxx" + + [[gateway.inout]] + account="xmpp.myxmpp" + channel="channel-name" \ No newline at end of file