@@ -72,7 +72,7 @@ public class TelegramBotTest {
7272 byte [] gifBytes = Files .readAllBytes (gifFile .toPath ());
7373
7474 public TelegramBotTest () throws IOException {
75- String token , chat , group , Private ;
75+ String token , chat , group ;
7676
7777 try {
7878 Properties properties = new Properties ();
@@ -81,20 +81,20 @@ public TelegramBotTest() throws IOException {
8181 token = properties .getProperty ("TEST_TOKEN" );
8282 chat = properties .getProperty ("CHAT_ID" );
8383 group = properties .getProperty ("GROUP_ID" );
84- Private = properties .getProperty ("PRIVATE_KEY" );
84+ privateKey = properties .getProperty ("PRIVATE_KEY" );
8585 testPassportData = properties .getProperty ("TEST_PASSPORT_DATA" );
8686
8787 } catch (Exception e ) {
8888 token = System .getenv ("TEST_TOKEN" );
8989 chat = System .getenv ("CHAT_ID" );
9090 group = System .getenv ("GROUP_ID" );
91- Private = System .getenv ("PRIVATE_KEY" );
91+ privateKey = System .getenv ("PRIVATE_KEY" );
92+ testPassportData = System .getenv ("TEST_PASSPORT_DATA" );
9293 }
9394
9495 bot = TelegramBotAdapter .buildDebug (token );
9596 chatId = Integer .parseInt (chat );
9697 groupId = Long .parseLong (group );
97- privateKey = Private ;
9898 }
9999
100100 @ Test
0 commit comments