MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / CustomEmojiEntity

Function CustomEmojiEntity

Telegram/SourceFiles/api/api_text_entities.cpp:30–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30[[nodiscard]] std::optional<MTPMessageEntity> CustomEmojiEntity(
31 MTPint offset,
32 MTPint length,
33 const QString &data) {
34 const auto parsed = Data::ParseCustomEmojiData(data);
35 if (!parsed) {
36 return {};
37 }
38 return MTP_messageEntityCustomEmoji(
39 offset,
40 length,
41 MTP_long(parsed));
42}
43
44[[nodiscard]] std::optional<MTPMessageEntity> MentionNameEntity(
45 not_null<Main::Session*> session,

Callers 1

EntitiesToMTPFunction · 0.85

Calls 2

ParseCustomEmojiDataFunction · 0.85
MTP_longFunction · 0.85

Tested by

no test coverage detected