diff options
| author | levlam <levlam@telegram.org> | 2022-12-06 14:53:54 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2022-12-06 14:53:54 +0300 |
| commit | d9e16106af45531533bc77f64d2aa79d86c30822 (patch) | |
| tree | 19dd6cf61465b55a0588e6ab1ad2df78845d409b /td/telegram/ForumTopicManager.h | |
| parent | c654041d9b90f194a1607dee83b1537a61cb9fe3 (diff) | |
Add setForumTopicNotificationSettings.
Diffstat (limited to 'td/telegram/ForumTopicManager.h')
| -rw-r--r-- | td/telegram/ForumTopicManager.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/td/telegram/ForumTopicManager.h b/td/telegram/ForumTopicManager.h index ae7f59a48..6eedf2e00 100644 --- a/td/telegram/ForumTopicManager.h +++ b/td/telegram/ForumTopicManager.h @@ -52,12 +52,23 @@ class ForumTopicManager final : public Actor { void toggle_forum_topic_is_closed(DialogId dialog_id, MessageId top_thread_message_id, bool is_closed, Promise<Unit> &&promise); + const DialogNotificationSettings *get_forum_topic_notification_settings(DialogId dialog_id, + MessageId top_thread_message_id) const; + + Status set_forum_topic_notification_settings(DialogId dialog_id, MessageId top_thread_message_id, + tl_object_ptr<td_api::chatNotificationSettings> &¬ification_settings) + TD_WARN_UNUSED_RESULT; + void toggle_forum_topic_is_hidden(DialogId dialog_id, bool is_hidden, Promise<Unit> &&promise); void delete_forum_topic(DialogId dialog_id, MessageId top_thread_message_id, Promise<Unit> &&promise); void delete_all_dialog_topics(DialogId dialog_id); + void on_update_forum_topic_notify_settings(DialogId dialog_id, MessageId top_thread_message_id, + tl_object_ptr<telegram_api::peerNotifySettings> &&peer_notify_settings, + const char *source); + void on_forum_topic_edited(DialogId dialog_id, MessageId top_thread_message_id, const ForumTopicEditedData &edited_data); @@ -119,6 +130,13 @@ class ForumTopicManager final : public Actor { void set_topic_info(DialogId dialog_id, Topic *topic, unique_ptr<ForumTopicInfo> forum_topic_info); + DialogNotificationSettings *get_forum_topic_notification_settings(DialogId dialog_id, + MessageId top_thread_message_id); + + bool update_forum_topic_notification_settings(DialogId dialog_id, MessageId top_thread_message_id, + DialogNotificationSettings *current_settings, + DialogNotificationSettings &&new_settings); + void on_delete_forum_topic(DialogId dialog_id, MessageId top_thread_message_id, Promise<Unit> &&promise); td_api::object_ptr<td_api::updateForumTopicInfo> get_update_forum_topic_info(DialogId dialog_id, |
