Deletes the dialog from your dialog list. If you own the
        channel this won't destroy it, only delete it from the list.

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))
        else:
            if self.is_group:
                await self._client(functions.messages.DeleteChatUserRequest(
                    self.entity.id, types.InputPeerSelf()))
            await self._client(functions.messages.DeleteHistoryRequest(
                self.input_entity, 0))