mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
22 lines
553 B
C++
22 lines
553 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
|
|
|
|
namespace Calls::Group {
|
|
|
|
struct PreparedMessage {
|
|
uint64 randomId = 0;
|
|
MTPTextWithEntities message;
|
|
};
|
|
|
|
[[nodiscard]] QByteArray SerializeMessage(const PreparedMessage &data);
|
|
[[nodiscard]] std::optional<PreparedMessage> DeserializeMessage(
|
|
const QByteArray &data);
|
|
|
|
} // namespace Calls::Group
|