Devuelve url para vincular lumi con telegram

This commit is contained in:
Maki 2020-06-22 09:17:09 -07:00
parent dadd6cb79e
commit 0d9afe8b66

View file

@ -15,7 +15,7 @@ module Telegram
# Recibe un token, lo busca y asocia las cuentas # Recibe un token, lo busca y asocia las cuentas
def start!(token = nil) def start!(token = nil)
unless token unless token
respond_with :message, text: t('.need_token') respond_with :message, text: t('.need_token', token_link: vincular_a_telegram_url)
return return
end end
@ -28,5 +28,9 @@ module Telegram
respond_with :message, text: t('.hi', pirata: pirata.nick) respond_with :message, text: t('.hi', pirata: pirata.nick)
end end
private
def vincular_a_telegram_url
'https://#{ENV.fetch('APP_HOST', 'lumi.partidopirata.com.ar')}/#/vincularATelegram'
end
end end
end end