Update to v1.4

This commit is contained in:
Lonami Exo
2018-11-03 12:45:34 +01:00
parent 8e6b98669a
commit 0fc97a3e8c
3 changed files with 82 additions and 1 deletions

View File

@@ -97,6 +97,10 @@ class Dialog:
self.input_entity, *args, **kwargs)
async def delete(self):
"""
Deletes the dialog from your dialog list. If you own the
channel this won't destroy it, only delete it from the list.
"""
if self.is_channel:
await self._client(functions.channels.LeaveChannelRequest(
self.input_entity))