/* 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 #include "ui/text/text_entity.h" namespace Main { class Session; } // namespace Main namespace Api { enum class ConvertOption { WithLocal, SkipLocal, }; [[nodiscard]] EntitiesInText EntitiesFromMTP( Main::Session *session, const QVector &entities); [[nodiscard]] MTPVector EntitiesToMTP( not_null session, const EntitiesInText &entities, ConvertOption option = ConvertOption::WithLocal); } // namespace Api