// This is the source code of AyuGram for Desktop. // // We do not and cannot prevent the use of our code, // but be respectful and credit the original author. // // Copyright @Radolyn, 2025 #pragma once namespace AyuMapper { template [[nodiscard]] MTPObject deserializeObject(std::vector serialized); template [[nodiscard]] std::vector serializeObject(MTPObject object); std::pair> serializeTextWithEntities(not_null item); [[nodiscard]] MTPVector deserializeTextWithEntities(std::vector serialized); int mapItemFlagsToMTPFlags(not_null item); } // namespace AyuMapper