mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-06 20:03:12 +00:00
37 lines
846 B
C++
37 lines
846 B
C++
/*
|
|
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<Main::Session*> session);
|
|
|
|
[[nodiscard]] const std::vector<not_null<UserData*>> &list() const;
|
|
[[nodiscard]] rpl::producer<> updates() const;
|
|
|
|
void bump(not_null<UserData*> user);
|
|
void remove(not_null<UserData*> user);
|
|
void applyLocal(std::vector<not_null<UserData*>> list);
|
|
|
|
private:
|
|
const not_null<Main::Session*> _session;
|
|
std::vector<not_null<UserData*>> _list;
|
|
rpl::event_stream<> _updates;
|
|
|
|
};
|
|
|
|
} // namespace Data
|