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