You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,26 @@ media:
62
62
63
63
There are also some more options to restrict those downloads to specific file types, chats or limit them by size. For more options, have a look into the [config.sample.yml](config.sample.yml).
64
64
65
+
## Translate messages
66
+
67
+
It is possible to use the Telegram API to translate messages.
68
+
69
+
You might specify the target language using the `translate_to_lang` property in your `config.yml`:
70
+
71
+
```yaml
72
+
translate_to_lang: "en"
73
+
```
74
+
75
+
Note: Use the two-letter ISO 639-1 language code (examples: "de", "en", "es", "it").
76
+
77
+
The translated message will be written into `translated_text` which can be mapped to any field using the output map configuration in your `config.yml`:
78
+
79
+
```yaml
80
+
output_map:
81
+
"message.original": "message.text"
82
+
"message.translated": "translated_text"
83
+
```
84
+
65
85
## Initial setup
66
86
67
87
When started for the first time, the application will ask you to connect with your Telegram account.
0 commit comments