We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7734c1d commit 17dae68Copy full SHA for 17dae68
.gitignore
@@ -61,3 +61,10 @@ target/
61
62
# Sublime Text 2
63
*.sublime*
64
+
65
+# unitests files
66
+telegram.mp3
67
+telegram.mp4
68
+telegram.ogg
69
+telegram.png
70
+telegram.webp
telegram/bot.py
@@ -749,6 +749,6 @@ def __reduce__(self):
749
def _valid_token(token):
750
"""a very basic validation on token"""
751
left, sep, _right = token.partition(':')
752
- if (sep is None) or (not left.isdigit()) or (len(left) < 3):
+ if (not sep) or (not left.isdigit()) or (len(left) < 3):
753
raise TelegramError('Invalid token')
754
return token
0 commit comments