Commit Graph

280 Commits

Author SHA1 Message Date
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 133e4af712 Fix replying to replies of forwarded messages
Fixes #93
2018-03-31 19:48:31 +03:00
Tulir Asokan 66d68f6b63 Fix error when trying to mention unauthenticated users 2018-03-31 11:18:39 +03:00
Tulir Asokan a1297e90ce Update alchemysession to fix get_entity 2018-03-30 12:50:48 +03:00
Tulir Asokan 6c0399ac7b Convert t.me message URLs to matrix.to message URLs. Fixes #98 2018-03-29 21:23:47 +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 22f430c340 Fix forwarded messages from channels not appearing 2018-03-24 17:01:09 +02:00
Tulir Asokan 91ae50911e Fix Telethon 0.18.1 compatibility. Fixes #96 2018-03-24 16:39:28 +02:00
Tulir Asokan 2bf327dbc5 Accept jpegs as images 2018-03-15 20:54:06 +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 733bbb30c3 Use canonical alias instead of MXID as default title 2018-03-11 13:46:02 +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 209d7cbdcc Merge branch 'master' into allow-portals-without-power 2018-03-11 13:01:24 +02:00
Tulir Asokan 715b658a3d Switch to a simpler non-versioned automatic config update 2018-03-11 11:25:45 +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 42e33ab54d Add temporary patch for TypeMessageEntity 2018-03-10 14:56:25 +02:00
Tulir Asokan 7f52238fbb Add Telegram bot command access whitelist. Fixes #80 2018-03-10 14:36:44 +02:00
Tulir Asokan ae88aa0553 Add type hints to formatter 2018-03-10 12:36:11 +02:00
Tulir Asokan 2d63c5b3ce Fix and refactor Matrix->Telegram formatter 2018-03-10 09:39:53 +02:00
Tulir Asokan 77c57eb64b Handle FlushError in transfer_file_to_matrix 2018-03-09 23:44:29 +02:00
Tulir Asokan c98e822e6d Add some extra checks before generating thumbnail 2018-03-09 23:25:56 +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 8bfb416735 Add config option for plaintext highlight bridging 2018-03-08 20:33:42 +02:00
Tulir Asokan 9709768b17 Add mxid parameter to set-pl 2018-03-08 20:01:48 +02:00
Tulir Asokan f6e3903b45 Add command to force set a Matrix power level without affecting Telegram. Fixes #60 2018-03-08 19:58:49 +02:00
Tulir Asokan b3082da999 Add option to underline edited part of message in edits. Fixes #61 2018-03-08 19:44:53 +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 ee8531143f Fix small typo 2018-03-08 11:42:53 +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 cf9a1f3afb Add appservice.public to config in v2 update 2018-03-07 21:31:27 +02:00
Tulir Asokan 2c68bd7378 Update config updater 2018-03-07 21:25:49 +02:00
Tulir Asokan 6ff89d1fe4 Add option to disable homeserver SSL verification 2018-03-07 21:20:59 +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 7004da9268 Handle SQL InvalidRequestErrors when transferring files 2018-03-07 19:11:29 +02:00
Tulir Asokan 0e6940eea5 Add bridge command to !help (ref #87) 2018-03-07 15:37:19 +02:00
Tulir Asokan 7b4b7509f3 Minor improvements to unicode->html formatter 2018-03-07 14:50:41 +02:00
Tulir Asokan 8bbd1f7db1 Fix duplicate unicode formatting when mixing strikethrough and underline 2018-03-07 14:12:37 +02:00
Tulir Asokan a6f26c16fc Add strikethrough/underline <-> unicode converter to formatter 2018-03-07 14:03:38 +02:00
Tulir Asokan 3aff450bae Fix error with large thumbnails 2018-03-06 22:43:31 +02:00
Tulir Asokan 97957a5731 Use native reply fallback format. Fixes #86 2018-03-06 21:24:45 +02:00