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
def start!(token = nil)
unless token
respond_with :message, text: t('.need_token')
respond_with :message, text: t('.need_token', token_link: vincular_a_telegram_url)
return
end
@ -28,5 +28,9 @@ module Telegram
respond_with :message, text: t('.hi', pirata: pirata.nick)
end
private
def vincular_a_telegram_url
'https://#{ENV.fetch('APP_HOST', 'lumi.partidopirata.com.ar')}/#/vincularATelegram'
end
end
end