Implement Telegram -> Matrix formatted message bridging

This commit is contained in:
Tulir Asokan
2018-01-21 15:15:13 +02:00
parent 130a428641
commit f1d8312806
8 changed files with 161 additions and 23 deletions
+2 -4
View File
@@ -33,10 +33,7 @@ class User(Base):
mxid = Column(String, primary_key=True)
tgid = Column(Integer, nullable=True)
def __init__(self, mxid, tgid=None):
self.mxid = mxid
self.tgid = tgid
tg_username = Column(String, nullable=True)
class Puppet(Base):
@@ -44,6 +41,7 @@ class Puppet(Base):
id = Column(Integer, primary_key=True)
displayname = Column(String, nullable=True)
username = Column(String, nullable=True)
def init(db_factory):