diff --git a/Alina_translator_Telegram_bot/bot.js b/Alina_translator_Telegram_bot/bot.js index ce469c0..bb309d2 100644 --- a/Alina_translator_Telegram_bot/bot.js +++ b/Alina_translator_Telegram_bot/bot.js @@ -254,26 +254,3 @@ function indexOfArray(_user){ return index; } - -/* -bot.on('callback_query', function onCallbackQuery(accionboton){ - const data = accionboton.data; - const msg = accionboton.message; - var chatId = msg.chat.id; - - switch(data){ - case 'es_en': _from='es'; _to='en'; - bot.sendMessage(chatId, "Now I will translate the texts from *Spanish*🇪🇸 to *English*🇬🇧.", {parse_mode: 'Markdown'}); - break ; - case 'en_es': _from='en'; _to='es'; - bot.sendMessage(chatId, "Now I will translate the texts from *English*🇬🇧 to *Spanish*🇪🇸.", {parse_mode: 'Markdown'}); - break ; - case 'es_ru': _from='es'; _to='ru'; - bot.sendMessage(chatId, "Now I will translate the texts from *Spanish*🇪🇸 to *Russian*🇷🇺.", {parse_mode: 'Markdown'}); - break ; - case 'ru_es': _from='ru'; _to='es'; - bot.sendMessage(chatId, "Now I will translate the texts from *Russian*🇷🇺 to *Spanish*🇪🇸.", {parse_mode: 'Markdown'}); - break ; - } -}); -*/ \ No newline at end of file