/* This file is part of Telegram Desktop, the official desktop application for the Telegram messaging service. For license and copyright information please follow this link: https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL */ #pragma once #include "mtproto/sender.h" class ApiWrap; class PeerData; namespace Main { class Session; } // namespace Main namespace Api { class PeerPhoto final { public: explicit PeerPhoto(not_null api); void upload(not_null peer, QImage &&image); void clear(not_null photo); private: void ready(const FullMsgId &msgId, const MTPInputFile &file); const not_null _session; MTP::Sender _api; base::flat_map> _uploads; }; } // namespace Api