/* 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 class UserData; namespace Main { class Session; } // namespace Main namespace Data { class RecentInlineBots final { public: explicit RecentInlineBots(not_null session); [[nodiscard]] const std::vector> &list() const; [[nodiscard]] rpl::producer<> updates() const; void bump(not_null user); void remove(not_null user); void applyLocal(std::vector> list); private: const not_null _session; std::vector> _list; rpl::event_stream<> _updates; }; } // namespace Data