Commit Graph

187 Commits

Author SHA1 Message Date
Travis Ralston 0d264e09a8 Add configuration for basic message formats
Fixes https://github.com/tulir/mautrix-telegram/issues/92
2018-06-07 13:49:03 -06:00
Tulir Asokan f28f5915a4 Don't create portal in response to relaybot events. Fixes #145 2018-05-31 11:18:48 +03:00
Tulir Asokan 13db0eea93 Sync telegram user's puppet at message send time if no display name is set. Fixes #131 2018-05-19 21:45:47 +03:00
Tulir Asokan adbd048108 Remove temporary debug messages 2018-05-19 21:42:48 +03:00
Tulir Asokan 7a373fa556 Add option to filter telegram chats from being bridged. Fixes #41 2018-05-19 19:35:01 +03:00
Tulir Asokan 0833850f4f Fix potential duplicate unauthenticated user join/leave message in Matrix 2018-05-19 16:18:04 +03:00
Tulir Asokan 1e0f2c72b5 Fix line lengths and add limit to .editorconfig 2018-04-29 23:51:28 +03:00
Tulir Asokan 73e7b8f635 Add option to send bot messages as m.notice. Fixes #121 2018-04-29 23:51:27 +03:00
Tulir Asokan 8354bf6bb5 Send gif stickers as-is rather than converting to webp. Fixes #132 2018-04-29 23:15:05 +03:00
Tulir Asokan db5441c3eb Fix some potential errors in matrix file handling 2018-04-29 23:15:04 +03:00
Tulir Asokan bb13813952 Check if portal is channel before trusting member list 2018-04-29 15:54:16 +03:00
Tulir Asokan 2c47cdfac6 Add option to limit number of members in startup sync. Fixes #115 2018-04-29 15:37:53 +03:00
Tulir Asokan 45981b9c77 Add Matrix->Telegram sticker bridging. Fixes #105 2018-04-29 01:49:19 +03:00
Tulir Asokan c040c0d59c Cut messages over 4096 characters long. Fixes #117 2018-04-29 01:19:12 +03:00
Tulir Asokan ae792a7b33 Bridge chat photo removing from Telegram to Matrix. Fixes #123 2018-04-29 00:31:25 +03:00
Tulir Asokan a3ed8dbce3 Add missing await (ref #123) 2018-04-29 00:25:28 +03:00
Tulir Asokan d332a429d6 Add option to disable native stickers. Fixes #116 2018-04-28 22:09:40 +03:00
Tulir Asokan 193dcc714b Wait for sync to complete when running sync explicitly 2018-04-28 22:01:29 +03:00
Tulir Asokan 445d997be8 Allow deleting messages via relay bot. Fixes #114 2018-04-28 21:52:24 +03:00
Tulir Asokan 8da06c969c Add option to not make publicly joinable channels public on Matrix. Fixes #128 2018-04-28 21:39:43 +03:00
Tulir Asokan 780edd7e57 Add user+portal-specific lock for sending/receiving messages of authenticated users. Fixes #108 2018-04-28 21:21:51 +03:00
Tulir Asokan 1ce8f08ff2 Remove debug prints and don't set TelegramFile.was_converted if webp image wasn't converted 2018-04-19 11:16:32 +03:00
Tulir Asokan 2eba5f687a Improve hacky post-error handling for #108 2018-04-15 17:45:28 +03:00
Tulir Asokan b4b1951509 Add hacky post-error handling for #108 2018-04-13 19:23:54 +03:00
Tulir Asokan cc29aec3f6 Remove timestamp massaging from edits. Fixes #106 2018-04-13 18:09:56 +03:00
Tulir Asokan 4804023acf Fix bridging Telegram documents (video/audio/file) 2018-04-09 13:35:54 +03:00
Tulir Asokan 459128a417 Fix error when handling DocumentAttributeSticker without alt 2018-04-08 17:57:30 +03:00
Tulir Asokan d40b0b896b Bump mautrix-appservice dependency version and fix mime type document attribute handling 2018-04-07 00:48:55 +03:00
Tulir Asokan 006a5971ea Split up telegram document handling and send stickers as m.sticker
Also add sticker resizing (max 256x256). Cached stickers won't be resized,
delete the `telegram_file` database table if you want all stickers to be
resized.

Fixes #104
2018-04-07 00:34:06 +03:00
Tulir Asokan a1297e90ce Update alchemysession to fix get_entity 2018-03-30 12:50:48 +03:00
Tulir Asokan 68a743a563 Send Telegram timestamps and source URLs to Matrix
Fixes #97
Fixes #100
2018-03-29 20:57:17 +03:00
Tulir Asokan 91ae50911e Fix Telethon 0.18.1 compatibility. Fixes #96 2018-03-24 16:39:28 +02:00
Tulir Asokan 0e23aafa3d Fix duplicate participants causing some users to be left out 2018-03-12 11:02:43 +02:00
Tulir Asokan 88a8404898 Fix saving created portals and use mxid as title by default 2018-03-11 13:41:05 +02:00
Tulir Asokan 54d2b4bba8 Make puppets leave room instead of kicking by AS bot 2018-03-11 13:12:40 +02:00
Tulir Asokan 4448077d43 Fix bot.add_chat() when creating Telegram chat 2018-03-11 13:06:26 +02:00
Tulir Asokan 68648d7b5c Improve support for portals without power levels 2018-03-11 10:39:24 +02:00
Tulir Asokan ad9cd27185 Merge branch 'master' into allow-portals-without-power 2018-03-11 10:24:15 +02:00
Tulir Asokan b06e7932f0 Add Matrix->Telegram location bridging and add user to relaybot files. Fixes #89 2018-03-10 19:53:08 +02:00
Tulir Asokan 7837f03532 Add Matrix->Telegram message pinning and show user in Telegram->Matrix pinning. Fixes #90 2018-03-10 16:03:37 +02:00
Tulir Asokan 2d63c5b3ce Fix and refactor Matrix->Telegram formatter 2018-03-10 09:39:53 +02:00
Tulir Asokan 85a4982ad9 Update roadmap and remove unnecessary newline 2018-03-09 17:49:26 +02:00
Tulir Asokan b1c85d5cda Add moviepy as optional dep for HQ thumbnails, make Pillow optional
[db updated]
2018-03-09 16:54:35 +02:00
Tulir Asokan a469e6ed10 Switch to AGPLv3 2018-03-08 23:49:56 +02:00
Tulir Asokan 61d9d6890a Bridge plaintext mentions of Telegram puppets into Telegram mentions 2018-03-08 18:39:27 +02:00
Tulir Asokan 150321a4d7 Fix replies/forwards to/of images 2018-03-08 18:01:58 +02:00
Tulir Asokan 96d3ca106a Fix Matrix -> Telegram code block bridging 2018-03-07 23:28:36 +02:00
Tulir Asokan 8d1de218a1 Implement registering (untested), fix auth stuff and possibly break stuff. Fixes #44 2018-03-07 22:09:56 +02:00
Tulir Asokan 30768d0a06 Add option to use inline images for better captions. Fixes #83 2018-03-07 21:16:09 +02:00
Tulir Asokan 3aff450bae Fix error with large thumbnails 2018-03-06 22:43:31 +02:00