updated regex

This commit is contained in:
MrBesen 2019-11-20 17:41:51 +01:00
父節點 da67d9c27a
當前提交 bb7ddf3480
簽署人: MrBesen
GPG 金鑰 ID: 596B2350DCD67504
共有 1 個檔案被更改,包括 1 行新增1 行删除

查看文件

@ -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