"Fossies" - the Fresh Open Source Software Archive 
Member "tdesktop-2.6.1/Telegram/SourceFiles/api/api_text_entities.h" (24 Feb 2021, 726 Bytes) of package /linux/misc/tdesktop-2.6.1.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
For more information about "api_text_entities.h" see the
Fossies "Dox" file reference documentation.
1 /*
2 This file is part of Telegram Desktop,
3 the official desktop application for the Telegram messaging service.
4
5 For license and copyright information please follow this link:
6 https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
7 */
8 #pragma once
9
10 #include "ui/text/text_entity.h"
11
12 namespace Main {
13 class Session;
14 } // namespace Main
15
16 namespace Api {
17
18 enum class ConvertOption {
19 WithLocal,
20 SkipLocal,
21 };
22
23 [[nodiscard]] EntitiesInText EntitiesFromMTP(
24 Main::Session *session,
25 const QVector<MTPMessageEntity> &entities);
26
27 [[nodiscard]] MTPVector<MTPMessageEntity> EntitiesToMTP(
28 not_null<Main::Session*> session,
29 const EntitiesInText &entities,
30 ConvertOption option = ConvertOption::WithLocal);
31
32 } // namespace Api