summarylogtreecommitdiffstats
path: root/mautrix-telegram-git.install
diff options
context:
space:
mode:
Diffstat (limited to 'mautrix-telegram-git.install')
-rw-r--r--mautrix-telegram-git.install32
1 files changed, 32 insertions, 0 deletions
diff --git a/mautrix-telegram-git.install b/mautrix-telegram-git.install
new file mode 100644
index 000000000000..62824d90df17
--- /dev/null
+++ b/mautrix-telegram-git.install
@@ -0,0 +1,32 @@
+post_install() {
+ echo "Your config files are at /etc/mautrix-telegram .
+
+Create an app at https://my.telegram.org/apps and put the api id and hash in
+/etc/mautrix-telegram/config.yaml . You can also edit other settings here.
+
+It's recommended to install mautrix-telegram-runit if you use runit which will install a service
+that automatically initializes the bridge and starts it.
+
+If you can't use the runit package, here's how to set up the bridge yourself:
+
+Run this once to generate your registration file
+
+ sudo mautrix-telegram \\
+ --config /etc/mautrix-telegram/config.yaml \\
+ --registration /etc/mautrix-telegram/registration.yaml \\
+ --generate-registration
+
+Edit your homeserver config and add the registration.yaml, for synapse it would be:
+
+ app_service_config_files:
+ - /etc/mautrix-telegram/registration.yaml
+
+Now you can start the bridge:
+
+ cd /etc/mautrix-telegram
+ sudo alembic -x config=/etc/mautrix-telegram/config.yaml upgrade head
+ sudo mautrix-telegram \\
+ --config /etc/mautrix-telegram/config.yaml \\
+ --registration /etc/mautrix-telegram/registration.yaml
+"
+}