tdesktop/Telegram/SourceFiles/api/api_text_entities.h

24 lines
581 B
C
Raw Normal View History

2019-09-16 11:14:06 +00:00
/*
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 Api {
EntitiesInText EntitiesFromMTP(const QVector<MTPMessageEntity> &entities);
enum class ConvertOption {
WithLocal,
SkipLocal,
};
MTPVector<MTPMessageEntity> EntitiesToMTP(
const EntitiesInText &entities,
ConvertOption option = ConvertOption::WithLocal);
} // namespace Api