Commit Graph

35 Commits

Author SHA1 Message Date
Tulir Asokan 704e00540e Add new permission level before "full" that can't use Matrix login. Fixes #199 2018-08-05 20:39:45 +03:00
Tulir Asokan 14b105e74f Never bridge messages from the relay bot. Fixes #202 2018-08-05 20:11:13 +03:00
Tulir Asokan dbfb980bde Add more type hints 2018-07-25 11:02:38 -04:00
Tulir Asokan 54d7ac5542 Implement Matrix->Telegram typing notifications 2018-07-22 17:28:27 -04:00
Tulir Asokan ecdca21e32 Stop handling events from custom puppets 2018-07-20 14:13:13 -04:00
Tulir Asokan 2b92483c50 Initial option to replace Matrix puppet of own Telegram account 2018-07-20 12:35:22 -04:00
Tulir Asokan 2b5426fda3 Add portal info and user chat list endpoints 2018-07-14 18:57:46 +03:00
Tulir Asokan f6923a5e1b Add provisioning API config (ref #154) 2018-07-12 23:39:23 +03:00
Tulir Asokan 15fd394d54 Add proxy config. Fixes #153 2018-07-12 23:08:08 +03:00
Tulir Asokan 042d89cf65 Add full log config. Fixes #166 2018-07-12 22:49:53 +03:00
Tulir Asokan ecf0e262df Switch to telethon package on pypi 2018-07-10 14:21:21 +03:00
Tulir Asokan d035e9da73 Add user auth level
Fixes #162
Closes #168
Closes #170
2018-07-10 14:21:21 +03:00
Tulir Asokan 371c6813de Stop creating connections for unauthenticated users at startup 2018-06-25 21:30:54 +03:00
Tulir Asokan f51d43b999 Increase connection timeout 2018-06-23 11:26:21 +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 b127afbf9b Delete unauthenticated sessions 2018-06-22 15:13:22 +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 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 c87f410d3e Disable Telethon error reporter 2018-04-28 21:30:47 +03:00
Tulir Asokan 91ae50911e Fix Telethon 0.18.1 compatibility. Fixes #96 2018-03-24 16:39:28 +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 a469e6ed10 Switch to AGPLv3 2018-03-08 23:49:56 +02:00
Tulir Asokan 021b60a45e Update Telethon and use PyPI telethon-aio package 2018-03-04 13:35:24 +02:00
Tulir Asokan 3a22c1463a Move versions back to TelegramClient init 2018-03-03 11:39:32 +02:00
Tulir Asokan 3a4628cb6e Use Telethon's new AlchemySession for session storage 2018-03-02 20:22:03 +02:00
Tulir Asokan 1f6b9bd04a Fix error when ignoring update in update_message 2018-02-25 12:16:28 +02:00
Tulir Asokan 836232db00 Update Telethon version 2018-02-25 12:07:48 +02:00
Tulir Asokan 9e5843a0dc Refactor and clean up code 2018-02-23 21:06:28 +02:00
Tulir Asokan 7c54436dff Initial support for creating portals without any authenticated users 2018-02-22 21:12:35 +02:00
Tulir Asokan 6e1d497e66 Fix edit handling/deduplication in channels. Fixes #74 2018-02-20 21:43:08 +02:00
Tulir Asokan 12d4025752 Implement Telegram->Matrix deletion bridging. Fixes #63 2018-02-20 20:43:05 +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 457df435ac Deduplicate service messages, typing notifications and presence 2018-02-18 12:31:52 +02:00
Tulir Asokan 7b0c58aa27 Handle incoming messages from bot 2018-02-18 12:03:35 +02:00
Tulir Asokan 2f75fa1cfe Add support for bot message relaying 2018-02-17 17:48:48 +02:00