Add support for joining chats and initiating private chats

This commit is contained in:
Tulir Asokan
2018-01-28 14:33:40 +02:00
parent 831851f118
commit f83f7870c8
6 changed files with 122 additions and 36 deletions
+3 -1
View File
@@ -97,9 +97,11 @@ class User:
self.connected = False
if self.tgid:
try:
del self.tgid[self.tgid]
del self.by_tgid[self.tgid]
except KeyError:
pass
self.tgid = None
self.save()
return self.client.log_out()
def send_message(self, entity, message, reply_to=None, entities=None, link_preview=True):