2018-09-29 01:45:43 +02:00
|
|
|
//
|
2022-12-31 22:28:08 +01:00
|
|
|
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2023
|
2018-09-29 01:45:43 +02:00
|
|
|
//
|
|
|
|
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
|
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
//
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "td/telegram/DraftMessage.h"
|
|
|
|
|
|
|
|
#include "td/telegram/InputMessageText.hpp"
|
|
|
|
|
|
|
|
#include "td/utils/tl_helpers.h"
|
|
|
|
|
|
|
|
namespace td {
|
|
|
|
|
|
|
|
template <class StorerT>
|
2023-05-31 16:46:06 +02:00
|
|
|
void DraftMessage::store(StorerT &storer) const {
|
|
|
|
td::store(date_, storer);
|
|
|
|
td::store(reply_to_message_id_, storer);
|
|
|
|
td::store(input_message_text_, storer);
|
2018-09-29 01:45:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
template <class ParserT>
|
2023-05-31 16:46:06 +02:00
|
|
|
void DraftMessage::parse(ParserT &parser) {
|
|
|
|
td::parse(date_, parser);
|
|
|
|
td::parse(reply_to_message_id_, parser);
|
|
|
|
td::parse(input_message_text_, parser);
|
2018-09-29 01:45:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace td
|