Devuelve url para vincular lumi con telegram
This commit is contained in:
parent
dadd6cb79e
commit
0d9afe8b66
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue