changed structure

This commit is contained in:
mrbesen 2019-02-08 14:14:11 +01:00
parent fcbcb9ff41
commit da50dde972
Signed by: MrBesen
GPG Key ID: 596B2350DCD67504
41 changed files with 8 additions and 3 deletions

View File

@ -5,7 +5,12 @@
<artifactId>TelegramAPI</artifactId>
<version>0.0.1-SNAPSHOT</version>
<build>
<sourceDirectory>src</sourceDirectory>
<sourceDirectory>src/main/java</sourceDirectory>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>

View File

@ -41,7 +41,7 @@ public class WebhookTelegramAPI extends TelegramAPI implements HttpHandler {
public WebhookTelegramAPI(String apikey, String externaladdr, String allowedupd) throws IOException {
super(apikey);
byte[] array = new byte[7]; // length is bounded by 7
byte[] array = new byte[16]; // length is bounded by 7
new Random().nextBytes(array);
pw = new String(array, Charset.forName("UTF-8"));
if(externaladdr.endsWith("/"))

View File

@ -13,6 +13,6 @@ appender.console.name = STDOUT
appender.console.layout.type = PatternLayout
appender.console.layout.pattern = %d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
rootLogger.level = debug
rootLogger.level = info
rootLogger.appenderRefs = stdout
rootLogger.appenderRef.stdout.ref = STDOUT