Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
First messages included
  • Loading branch information
Javinator9889 committed Jun 26, 2018
1 parent bff4dca commit d6315d1
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 31 deletions.
73 changes: 46 additions & 27 deletions App/.idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions App/commands/__init__.py
@@ -1,4 +1,4 @@
from telegram import Bot, Update
from telegram import Bot, Update, ParseMode
from telegram.ext import run_async

from utils import Constants
Expand Down Expand Up @@ -26,9 +26,7 @@ def start(self, bot: Bot, update: Update):
with open(user_path + Constants.P_USERS_FILE, "wb") as user_info:
pickle.dump(Constants.D_USER_DICT, user_info)
db_insert.registerNewUser(user_id=user_id, username=username, name=name)


# bot.sendMessage(chat_id, self.__messages["welcome"])
bot.sendMessage(chat_id=user_id, text=self.__messages["msg"], parse_mode=ParseMode.MARKDOWN)


class HelpHandler(Handler):
Expand Down
16 changes: 16 additions & 0 deletions App/messages/es_ES.json
@@ -0,0 +1,16 @@
{
"welcome": [
{
"msg": "Hola, bienvenido {} 😄\nUsa el comando /help para *obtener más ayuda* o empieza a *usar el bot* ya mismo 🎶\n\nSi quieres estar al tanto de las _últimas noticias_ sobre el bot, échale un vistazo al canal oficial: @ytMDBot"
}
],
"help": [
{
"msg": "Para descargar una canción puedes:\n ■ *Buscar* 🔎 la canción por _título y artista_, enviándoselo directamente al bot\n ■ *Enviar* directamente la _URL_ 🔗 del vídeo\n ■ Seleccionar una *canción ya descargada* desde el historial 🕒\n\n",
"more_help": "Para más ayuda, navega con los botones que aparecen debajo",
"d_via_tt-at": "*Descarga*[ ]({})canciones enviando directamente el _título_ 🎤 y _artista_ 🗣 de la canción al bot",
"d_via_url": "Comienza[ ]({})directamente *con la descarga* enviando la URL del vídeo de YouTube\n\nPuedes usar un bot _inline_ como @vid para agilizar este proceso",
"d_via_history": "Accede[ ]({})a tu *historial* mediante el comando /history, desde donde podrás _seleccionar directamente_ la canción que quieras descargar"
}
]
}

0 comments on commit d6315d1

Please sign in to comment.