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
This commit is contained in:
Tulir Asokan
2018-02-03 16:15:37 +02:00
parent 1bc246af37
commit f49f71ce8d
7 changed files with 154 additions and 48 deletions
+3
View File
@@ -61,6 +61,9 @@ class User:
def has_full_access(self):
return self.logged_in and self.whitelisted
def get_input_entity(self, user):
return user.client.get_input_entity(InputUser(user_id=self.tgid))
# region Database conversion
def to_db(self):