• Translate text to a given language.

    Parameters

    • client: ITelegramClient
    • text: InputText

      Text to translate

    • toLanguage: string

      Target language (two-letter ISO 639-1 language code)

    Returns Promise<TextWithEntities>