Skip to content

Commit 01fd3e4

Browse files
authored
Update main.py
1 parent 6f403e2 commit 01fd3e4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

main.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@ def traduire_texte(texte, de, a):
5252
# Commande /start
5353
@bot.message_handler(commands=['start'])
5454
def afficher_message_bienvenue(message):
55-
bot.send_chat_action(
56-
chat_id=message.chat.id,
57-
action="typing"
58-
)
5955
message_bienvenue = '''👋 Bienvenue ! Je suis votre *traducteur Anglais Francais* 🌍
6056
*Voici les principales commandes que je propose :*
6157
🇺🇸 `/fr hello this is a test` - Traduire le texte en anglais vers francais.
@@ -67,7 +63,10 @@ def afficher_message_bienvenue(message):
6763
6864
*🆚 Version : 1.0.0 - By @A_liou*
6965
'''
70-
66+
bot.send_chat_action(
67+
chat_id=message.chat.id,
68+
action="typing"
69+
)
7170
bot.reply_to(message, message_bienvenue, parse_mode='Markdown')
7271
# Commande /fr
7372
@bot.message_handler(commands=['fr'])

0 commit comments

Comments
 (0)