mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Add translation API
This commit is contained in:
@@ -313,5 +313,9 @@ public extension TelegramEngine {
|
||||
public func messageReactionList(message: EngineMessage, reaction: String?) -> EngineMessageReactionListContext {
|
||||
return EngineMessageReactionListContext(account: self.account, message: message, reaction: reaction)
|
||||
}
|
||||
|
||||
public func translate(text: String, fromLang: String?, toLang: String) -> Signal<String?, NoError> {
|
||||
return _internal_translate(network: self.account.network, text: text, fromLang: fromLang, toLang: toLang)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user