diff --git a/bottelegram/telegram_bot.py b/bottelegram/telegram_bot.py index aeea3ed..5dae5fd 100644 --- a/bottelegram/telegram_bot.py +++ b/bottelegram/telegram_bot.py @@ -139,7 +139,7 @@ async def handle_message(update: Update, context: ContextTypes.DEFAULT_TYPE): reply_markup = get_lang_keyboard() sent_message = await update.message.reply_text( - f"🌍 *Original:*\n{text}\n\n¿A qué idioma quieres traducir?", + f"🌍 *Original:*\n{text}", parse_mode="Markdown", reply_markup=reply_markup ) @@ -154,7 +154,7 @@ async def handle_photo(update: Update, context: ContextTypes.DEFAULT_TYPE): reply_markup = get_lang_keyboard() sent_message = await update.message.reply_photo( update.message.photo[-1].file_id, - caption=f"🌍 *Original:*\n{caption}\n\n¿A qué idioma quieres traducir?", + caption=f"🌍 *Original:*\n{caption}", parse_mode="Markdown", reply_markup=reply_markup ) @@ -230,7 +230,7 @@ async def handle_document(update: Update, context: ContextTypes.DEFAULT_TYPE): reply_markup = get_lang_keyboard() sent_message = await update.message.reply_document( update.message.document.file_id, - caption=f"🌍 *Original:*\n{caption}\n\n¿A qué idioma quieres traducir?", + caption=f"🌍 *Original:*\n{caption}", parse_mode="Markdown", reply_markup=reply_markup ) @@ -242,7 +242,7 @@ async def handle_video(update: Update, context: ContextTypes.DEFAULT_TYPE): reply_markup = get_lang_keyboard() sent_message = await update.message.reply_video( update.message.video.file_id, - caption=f"🌍 *Original:*\n{caption}\n\n¿A qué idioma quieres traducir?", + caption=f"🌍 *Original:*\n{caption}", parse_mode="Markdown", reply_markup=reply_markup ) @@ -254,7 +254,7 @@ async def handle_animation(update: Update, context: ContextTypes.DEFAULT_TYPE): reply_markup = get_lang_keyboard() sent_message = await update.message.reply_animation( update.message.animation.file_id, - caption=f"🌍 *Original:*\n{caption}\n\n¿A qué idioma quieres traducir?", + caption=f"🌍 *Original:*\n{caption}", parse_mode="Markdown", reply_markup=reply_markup ) @@ -266,7 +266,7 @@ async def handle_audio(update: Update, context: ContextTypes.DEFAULT_TYPE): reply_markup = get_lang_keyboard() sent_message = await update.message.reply_audio( update.message.audio.file_id, - caption=f"🌍 *Original:*\n{caption}\n\n¿A qué idioma quieres traducir?", + caption=f"🌍 *Original:*\n{caption}", parse_mode="Markdown", reply_markup=reply_markup ) @@ -278,7 +278,7 @@ async def handle_voice(update: Update, context: ContextTypes.DEFAULT_TYPE): reply_markup = get_lang_keyboard() sent_message = await update.message.reply_voice( update.message.voice.file_id, - caption=f"🌍 *Original:*\n{caption}\n\n¿A qué idioma quieres traducir?", + caption=f"🌍 *Original:*\n{caption}", parse_mode="Markdown", reply_markup=reply_markup )