diff --git a/aiogram/bot/api.py b/aiogram/bot/api.py index 675626ac..9dea86ea 100644 --- a/aiogram/bot/api.py +++ b/aiogram/bot/api.py @@ -28,7 +28,7 @@ def check_token(token: str) -> bool: raise exceptions.ValidationError('Token is invalid!') left, sep, right = token.partition(':') - if (not sep) or (not left.isdigit()) or (len(left) < 3): + if (not sep) or (not left.isdigit()) or (not right): raise exceptions.ValidationError('Token is invalid!') return True