changed structure
This commit is contained in:
parent
fcbcb9ff41
commit
da50dde972
7
pom.xml
7
pom.xml
|
@ -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>
|
||||
|
|
|
@ -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("/"))
|
|
@ -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
|
Loading…
Reference in New Issue