mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
31 lines
695 B
C++
31 lines
695 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
|
|
|
|
#include <translate_provider.h>
|
|
|
|
class PeerData;
|
|
struct MsgId;
|
|
|
|
namespace Main {
|
|
class Session;
|
|
} // namespace Main
|
|
|
|
namespace Ui {
|
|
|
|
[[nodiscard]] std::unique_ptr<TranslateProvider> CreateTranslateProvider(
|
|
not_null<Main::Session*> session);
|
|
|
|
[[nodiscard]] TranslateProviderRequest PrepareTranslateProviderRequest(
|
|
not_null<TranslateProvider*> provider,
|
|
not_null<PeerData*> peer,
|
|
MsgId msgId,
|
|
TextWithEntities text);
|
|
|
|
} // namespace Ui
|