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
Ce projet est un Bot Traducteur utilisant l'API CodingTranslator pour traduire des textes entre l'anglais et le français et vice versa.
5
+
6
+
## Démonstration
7
+
8
+
-[@en_frbot](https://t.me/en_frbot)
9
+
10
+
## Installation
11
+
12
+
Clonez ce dépôt Git sur votre machine locale :
13
+
14
+
```bash
15
+
https://github.com/codingtuto/TG-TRANSLATOR-BOT/
16
+
```
17
+
18
+
Renommez le fichier `.env.example` en `.env`.
19
+
Remplacez `VOTRE_TOKEN_API_ICI` par votre jeton d'API dans le fichier `.env` : comme ceci
20
+
```bash
21
+
TELEGRAM_API_TOKEN=5674:XXXXXXXXXXXXXXXXXXXXX
22
+
```
23
+
24
+
Installez les dépendances en exécutant : ous devez etre sur le dossier du bot `cd TG-TRANSLATOR-BOT`:
25
+
26
+
```bash
27
+
pip install -r requirements.txt
28
+
```
29
+
## Utilisation
30
+
31
+
Maintenant que vous avez configuré le projet, vous pouvez l'utiliser pour traduire des textes. Exécutez le script principal avec la commande suivante :
32
+
```bash
33
+
python main.py
34
+
```
35
+
36
+
37
+
## Commandes
38
+
Le Bot Traducteur prend en charge deux commandes :
39
+
40
+
`/fr <texte>`: Traduit le texte de l'anglais vers le français.
41
+
`/en <texte>` : Traduit le texte du français vers l'anglais.
0 commit comments