Also use Auth() instead of AuthSession::Current*().
Support CDN file download.
Server has some extensions checking for inputMediaUploadedPhoto, so force the extension to be .jpg anyway. It doesn't matter, because the filename from inputFile is not used anywhere. Also own PhotoData::UploadingData through std::unique_ptr.
Next commit fixes the build.