Changeset View
Changeset View
Standalone View
Standalone View
lib/lsg/application.ex
Context not available. | |||||
end | end | ||||
defp start_telegram() do | defp start_telegram() do | ||||
token = Keyword.get(Application.get_env(:lsg, :telegram, []), :key) | token = Keyword.get(Application.get_env(:nola, :telegram, []), :key) | ||||
options = [ | options = [ | ||||
username: Keyword.get(Application.get_env(:lsg, :telegram, []), :nick, "beauttebot"), | username: Keyword.get(Application.get_env(:nola, :telegram, []), :nick, "beauttebot"), | ||||
purge: false | purge: false | ||||
] | ] | ||||
telegram = Telegram.Bot.ChatBot.Supervisor.start_link({Nola.Telegram, token, options}) | telegram = Telegram.Bot.ChatBot.Supervisor.start_link({Nola.Telegram, token, options}) | ||||
Context not available. |