Commit Graph

45 Commits

Author SHA1 Message Date
Tulir Asokan 7515b31164 Move Matrix state cache to main database. Fixes #159 2018-07-12 16:05:54 +03:00
Tulir Asokan 25b1adf626 Add support for logging in with a bot. Fixes #155 2018-06-23 00:44:41 +03:00
Tulir Asokan d466060c44 Make logged_in and has_full_access async functions instead of properties 2018-06-22 12:45:19 +03:00
Tulir Asokan 42056b91c5 Fix critical Telethon core rewrite compatibility bugs 2018-06-21 16:16:16 +03:00
Tulir Asokan 1f5261ff8f Initial solution and database update for #11
The database now contains a displayname_source field which is the
telegram user ID of the user whose point of view the displayname
is from.

Updates from the relaybot user always take precendence, but currently
the relaybot will never automatically fetch displaynames.
2018-05-19 17:22:16 +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 91ae50911e Fix Telethon 0.18.1 compatibility. Fixes #96 2018-03-24 16:39:28 +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 021b60a45e Update Telethon and use PyPI telethon-aio package 2018-03-04 13:35:24 +02:00
Tulir Asokan f57d1e7311 Handle deleted accounts in get_displayname properly 2018-03-03 20:21:19 +02:00
Tulir Asokan 566a2b3892 Add join/leave notifications for unauthenticated users. Fixes #81 2018-02-24 11:44:49 +02:00
Tulir Asokan 22e4a189eb Convert Telegram room mentions into pills (ref #62) 2018-02-23 16:45:48 +02:00
Tulir Asokan 05853115c6 Use file deduplication for avatars 2018-02-20 13:34:40 +02:00
Tulir Asokan 5930b2e3bb Stop using db.merge() in most places 2018-02-19 20:35:34 +02:00
Tulir Asokan 0a6130607d Fix avatar changes and outgoing meta change deduplication
Also move the telegram ID -> MXID generation to Puppet.get_mxid_from_id()
2018-02-19 19:52:45 +02:00
Tulir Asokan 2f75fa1cfe Add support for bot message relaying 2018-02-17 17:48:48 +02:00
Tulir Asokan 57e1a863dc Minor style fixes 2018-02-16 17:39:24 +02:00
Tulir Asokan 6615a68cee Remove unnecessary get_input_entity calls 2018-02-15 13:14:30 +02:00
Tulir Asokan e1e9ba80fa Add Python 3.5 compatibility 2018-02-11 22:41:44 +02:00
Tulir Asokan 0e56592966 Remove Python 3.5 compatibility on master branch 2018-02-11 22:39:02 +02:00
Tulir Asokan 04714a2975 Save contacts to db and allow local contact search. Fixes #35 2018-02-11 17:19:17 +02:00
Tulir Asokan 55dc1ff3c7 Initial asyncio version 2018-02-09 23:17:03 +02:00
Tulir Asokan 13c2d327fb Stop passing loggers around and organize imports 2018-02-06 18:10:19 +02:00
Tulir Asokan aa1d6c089c Update Telegram user info automatically 2018-02-05 19:40:13 +02:00
Tulir Asokan 11eb9277ed Move TelegramClient extensions to own class 2018-02-05 17:08:00 +02:00
Tulir Asokan ceeeefeae6 Fix most warnings 2018-02-04 20:31:42 +02:00
Tulir Asokan f49f71ce8d Bridge group chat portal metadata from Matrix to Telegram. Fixes #33
WARNING: Portal table schema changed. Run the following SQL before updating:
    ALTER TABLE portal ADD COLUMN about VARCHAR
2018-02-03 16:22:23 +02:00
Tulir Asokan e38cf82c40 Add Matrix->Telegram kicking and fix and improve things. Fixes #36 2018-02-01 23:22:16 +02:00
Tulir Asokan bef850e924 Add future-fstrings to support python 3.5 and possibly 3.4 2018-01-29 18:24:43 +02:00
Tulir Asokan 6a8b1ce91d Ignore avatar download errors 2018-01-28 22:04:54 +02:00
Tulir Asokan ec5a75c0c6 Fix Puppet#get_displayname() 2018-01-28 21:58:34 +02:00
Tulir Asokan 28593ea50c Fix private chats when multiple users are using the bridge 2018-01-28 21:21:44 +02:00
Tulir Asokan 143ca11f05 Add support for inviting users and initiating chats from Matrix 2018-01-28 17:05:43 +02:00
Tulir Asokan f83f7870c8 Add support for joining chats and initiating private chats 2018-01-28 14:33:40 +02:00
Tulir Asokan 831851f118 Use named format parameter for alias/name templates 2018-01-28 12:23:22 +02:00
Tulir Asokan 6de82f10a0 Add support for displayname preferences 2018-01-27 23:21:51 +02:00
Tulir Asokan a0bbf0338d Add support for all kinds of files in both directions 2018-01-27 16:31:40 +02:00
Tulir Asokan 0eace205ad Add avatar syncing and join/leave bridging 2018-01-23 22:14:26 +02:00
Tulir Asokan 8a3ccb6e8c Implement message reply/forward bridging in both directions 2018-01-22 21:20:56 +02:00
Tulir Asokan aaaf52576c Implement room name and avatar change handling 2018-01-22 19:03:02 +02:00
Tulir Asokan a8359441b0 Implement Matrix -> Telegram formatted message bridging 2018-01-21 20:48:14 +02:00
Tulir Asokan f1d8312806 Implement Telegram -> Matrix formatted message bridging 2018-01-21 15:15:13 +02:00
Tulir Asokan 899f491707 Add plain text message bridging 2018-01-20 23:59:51 +02:00