From a02363638ea5b2ec97cc0ec62dfa2f39187b6eda Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sun, 3 Dec 2017 10:02:54 +0200 Subject: [PATCH] Add more things --- README.md | 11 +++++++++++ package-lock.json | 49 +++++++++++++++++++---------------------------- 2 files changed, 31 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index 43d685a5..171da96e 100644 --- a/README.md +++ b/README.md @@ -32,11 +32,20 @@ You should be automatically invited into portal rooms for your groups and channe 2. receive a messages in the chat or 3. receive an invite to the chat +Support for inviting users both Telegram and Matrix users to Telegram portal rooms is planned, but not yet implemented. + #### Private messaging You can start private chats by simply inviting the Matrix puppet of the Telegram user you want to chat with to a private room. If you don't know the MXID of the puppet, you can search for users using the `search ` management command. +#### Bot commands +Initiating chats with bots is no different from initiating chats with real Telegram users. + +The bridge translates `!commands` into `/commands`, which allows you to use Telegram bots without constantly escaping +the slash. Please note that when messaging a bot for the first time, it may expect you to run `!start` first. The bridge +does not do this automatically. + ## Features & Roadmap * Matrix → Telegram * [x] Plaintext messages @@ -53,6 +62,7 @@ If you don't know the MXID of the puppet, you can search for users using the `se * [ ] Power level * [ ] Membership actions (invite, kick, join, leave) * [ ] Room metadata changes + * [ ] Room invites * Telegram → Matrix * [x] Plaintext messages * [x] Formatted messages @@ -73,6 +83,7 @@ If you don't know the MXID of the puppet, you can search for users using the `se * [x] Chat metadata changes * [x] Initial chat metadata * [ ] Message edits + * [x] Chat invites * Initiating chats * [x] Automatic portal creation for groups/channels at startup * [x] Automatic portal creation for groups/channels when receiving invite/message diff --git a/package-lock.json b/package-lock.json index 50dfe0e8..ec1f7a43 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1040,24 +1040,6 @@ "randombytes": "2.0.5" } }, - "doctrine": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.0.0.tgz", - "integrity": "sha1-xz2NKQnSIpHhoAejlYBNqLZl/mM=", - "dev": true, - "requires": { - "esutils": "2.0.2", - "isarray": "1.0.0" - }, - "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - } - } - }, "dom-serializer": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.1.0.tgz", @@ -1231,9 +1213,9 @@ "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" }, "eslint": { - "version": "4.11.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-4.11.0.tgz", - "integrity": "sha512-UWbhQpaKlm8h5x/VLwm0S1kheMrDj8jPwhnBMjr/Dlo3qqT7MvcN/UfKAR3E1N4lr4YNtOvS4m3hwsrVc/ky7g==", + "version": "4.12.1", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-4.12.1.tgz", + "integrity": "sha512-28hOYej+NZ/R5H1yMvyKa1+bPlu+fnsIAQffK6hxXgvmXnImos2bA5XfCn5dYv2k2mrKj+/U/Z4L5ICWxC7TQw==", "dev": true, "requires": { "ajv": "5.3.0", @@ -1242,7 +1224,7 @@ "concat-stream": "1.6.0", "cross-spawn": "5.1.0", "debug": "3.1.0", - "doctrine": "2.0.0", + "doctrine": "2.0.2", "eslint-scope": "3.7.1", "espree": "3.5.2", "esquery": "1.0.0", @@ -1251,7 +1233,7 @@ "file-entry-cache": "2.0.0", "functional-red-black-tree": "1.0.1", "glob": "7.1.2", - "globals": "9.18.0", + "globals": "11.0.1", "ignore": "3.3.7", "imurmurhash": "0.1.4", "inquirer": "3.3.0", @@ -1295,6 +1277,15 @@ "ms": "2.0.0" } }, + "doctrine": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.0.2.tgz", + "integrity": "sha512-y0tm5Pq6ywp3qSTZ1vPgVdAnbDEoeoc5wlOHXoY1c4Wug/a7JvqHIl7BTvwodaHmejWkK/9dSb3sCYfyo/om8A==", + "dev": true, + "requires": { + "esutils": "2.0.2" + } + }, "glob": { "version": "7.1.2", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", @@ -1309,6 +1300,12 @@ "path-is-absolute": "1.0.1" } }, + "globals": { + "version": "11.0.1", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.0.1.tgz", + "integrity": "sha1-Eqh7sBDlFUOWrMU14eQ/x1Ow5eg=", + "dev": true + }, "isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", @@ -1861,12 +1858,6 @@ "once": "1.4.0" } }, - "globals": { - "version": "9.18.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", - "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==", - "dev": true - }, "globby": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/globby/-/globby-5.0.0.tgz",