Merge pull request #26 from vavdb/patch-1

Optional NUL after checksum
This commit is contained in:
Nigel Dokter 2017-09-18 11:55:31 +02:00 committed by GitHub
commit 41381f1705

View File

@ -51,7 +51,7 @@ class TelegramBuffer(object):
# - The checksum is optional '{0,4}' because not all telegram versions
# support it.
return re.findall(
r'\/[^\/]+?\![A-F0-9]{0,4}\r\n',
r'\/[^\/]+?\![A-F0-9]{0,4}\0?\r\n',
self._buffer,
re.DOTALL
)