diff options
| author | levlam <levlam@telegram.org> | 2022-03-25 17:44:20 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2022-03-25 17:44:20 +0300 |
| commit | 66dfbee537d30c6cd9d0a52e6a554da08f20dff3 (patch) | |
| tree | 6515a0ef4fbf0aebefa452188c434ef9dd572e00 /td/telegram/AttachMenuManager.h | |
| parent | ec802b1b57d5961e1f24054439d0e13abad3126b (diff) | |
Save attach menu bots between restarts.
Diffstat (limited to 'td/telegram/AttachMenuManager.h')
| -rw-r--r-- | td/telegram/AttachMenuManager.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/td/telegram/AttachMenuManager.h b/td/telegram/AttachMenuManager.h index 9c715829a..4ad2bcad0 100644 --- a/td/telegram/AttachMenuManager.h +++ b/td/telegram/AttachMenuManager.h @@ -47,8 +47,16 @@ class AttachMenuManager final : public Actor { FileId ios_animated_icon_file_id_; FileId android_icon_file_id_; FileId macos_icon_file_id_; + + template <class StorerT> + void store(StorerT &storer) const; + + template <class ParserT> + void parse(ParserT &parser); }; + class AttachMenuBotsLogEvent; + friend bool operator==(const AttachMenuBot &lhs, const AttachMenuBot &rhs); friend bool operator!=(const AttachMenuBot &lhs, const AttachMenuBot &rhs); @@ -57,6 +65,10 @@ class AttachMenuManager final : public Actor { void send_update_attach_menu_bots() const; + static string get_attach_menu_bots_database_key(); + + void save_attach_menu_bots(); + Td *td_; ActorShared<> parent_; |
