From d7c5d28d4537bd40ffc3da0fe18f2a25c29bf514 Mon Sep 17 00:00:00 2001 From: chase Date: Fri, 28 Sep 2018 22:14:00 +0200 Subject: [PATCH] Fix headers in Handling Bot Tokens page again --- TelegramBots.wiki/Handling-Bot-Tokens.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/TelegramBots.wiki/Handling-Bot-Tokens.md b/TelegramBots.wiki/Handling-Bot-Tokens.md index 1366cf30..305f9d59 100644 --- a/TelegramBots.wiki/Handling-Bot-Tokens.md +++ b/TelegramBots.wiki/Handling-Bot-Tokens.md @@ -16,7 +16,7 @@ Those Values are not defined in the Application and therefore are not visible in ## Setting Environment Variables ### -###Windows +### Windows Enviroment Variables in Windows can be set using the Console (CMD) using ```batchfile SETX [VARIABLE_NAME] [YOUR_BOT_TOKEN] @@ -29,7 +29,7 @@ It can also be set using the Windows GUI * Click Environment Variables... * In the 'User Variables for X' click New and enter a Name and your Token as the Value -###Linux & Mac +### Linux & Mac * Open the '~/.bash_profile' File * Append the following to it: ```bash @@ -38,7 +38,7 @@ export VARIABLE_NAME = {YOUR_BOT_TOKEN} * Save the file * Either reboot your system or run the command above in your terminal -###IntelliJ +### IntelliJ * Go to Run->Edit Configuratuions... * Navigate to your Java Run Configuration * Under Enviroment->Enviroment Variables click the Folder Icon @@ -51,16 +51,16 @@ export VARIABLE_NAME = {YOUR_BOT_TOKEN} * Enter a Name and your Token as the Value * Click the "Add" button -## Accessing Enviroment Variables ### +## Accessing Enviroment Variables ## -###Java +### Java You can access the Enviroment Variables by using System.getEnv() ```java String BOT_TOKEN = System.getenv("VARIABLE_NAME"); ``` -###Spring +### Spring In Spring the @Value annotation allows you to inject the Value into your class ```java