AyuGramDesktop/Telegram/SourceFiles/tde2e/tde2e_integration.h
2025-05-01 11:13:15 +04:00

20 lines
497 B
C++

/*
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
namespace TdE2E {
struct UserId;
struct PublicKey;
[[nodiscard]] UserId MakeUserId(not_null<UserData*> user);
[[nodiscard]] UserId MakeUserId(::UserId id);
[[nodiscard]] MTPint256 PublicKeyToMTP(const PublicKey &key);
} // namespace TdE2E