From 696ff44b4fe4e4ca7e41c9cb585128032d52d5fb Mon Sep 17 00:00:00 2001 From: Mark Glasgow Date: Fri, 18 Mar 2022 12:42:49 +0000 Subject: [PATCH] retrieving the ID from the web interface is much easier. --- Section-Telegram-(basic).md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Section-Telegram-(basic).md b/Section-Telegram-(basic).md index 28fd679..f29eefb 100644 --- a/Section-Telegram-(basic).md +++ b/Section-Telegram-(basic).md @@ -5,8 +5,31 @@ Token="Yourtokenhere" RemoteNickFormat="({PROTOCOL}) {NICK} " MessageFormat="HTMLNick" +IgnoreMessages="^/" #Ignore bot command spam ``` +Here is an example gateway bridging `Discord`<>`Telegram` + + +```toml +[[gateway]] +name="YourUniqueGateWayName" +enable=true + + [[gateway.inout]] + account="telegram.mytelegram" + channel="-100xxx" + + [[gateway.inout]] + account="discord.mydiscord" + channel="channel-name" +``` +The easiest way to retrieve your channel id is to navigate to https://web.telegram.org/ and simply copy the numbers at the end of the hyperlink into the `xxx` position. + + +To add more nodes to this bridge, you simply need to add additional `[[gateway.inout]]` fields. + + ## Retrieving your chat number from Matterbridge ### Setup Matterbridge can output your chat number as debug information. Here's how.