/* 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 namespace Main { class Session; } // namespace Main namespace Data { class RecentSharedMediaGifts final { public: explicit RecentSharedMediaGifts(not_null session); ~RecentSharedMediaGifts(); void request( not_null peer, Fn)> done); private: struct Entry { std::deque ids; crl::time lastRequestTime = 0; mtpRequestId requestId = 0; }; const not_null _session; base::flat_map _recent; }; } // namespace Data