Browse Source

updated regex

master
MrBesen 3 weeks ago
parent
commit
bb7ddf3480
Signed by: MrBesen <y.g.2@gmx.de> GPG Key ID: 596B2350DCD67504
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/java/de/mrbesen/telegram/TelegramAPI.java

+ 1
- 1
src/main/java/de/mrbesen/telegram/TelegramAPI.java View File

@@ -37,7 +37,7 @@ import de.mrbesen.telegram.objects.TUser.Status;
public class TelegramAPI implements Runnable {

private static final String API_URL = "https://api.telegram.org/bot";
private static final String TOKENREGEX = "^\\d{4,9}:[\\w-]{12,64}$";
private static final String TOKENREGEX = "^\\d{4,10}:[\\w-]{12,64}$";
private static final int TELEGRAMFILESIZELIMIT = 20000000;//20MB filesize https://core.telegram.org/bots/api#sending-files
public static final String APIVERSION = "3.8";//May 18, 2019


Loading…
Cancel
Save