Add support for logging in with a bot. Fixes #155

This commit is contained in:
Tulir Asokan
2018-06-23 00:44:41 +03:00
parent 17aefd02da
commit 25b1adf626
9 changed files with 116 additions and 45 deletions
+1 -2
View File
@@ -104,8 +104,7 @@ class Puppet(Base):
class BotChat(Base):
query = None
__tablename__ = "bot_chat"
bot_id = Column(Integer, primary_key=True, default=0)
chat_id = Column(Integer, primary_key=True)
id = Column(Integer, primary_key=True)
type = Column(String, nullable=False)