Register application/x-tgsticker to mimetypes

This commit is contained in:
Lonami Exo 2020-04-26 13:34:34 +02:00
parent eb58e60dd1
commit bfa46f47ed

View File

@ -51,6 +51,8 @@ mimetypes.add_type('audio/aac', '.aac')
mimetypes.add_type('audio/ogg', '.ogg')
mimetypes.add_type('audio/flac', '.flac')
mimetypes.add_type('application/x-tgsticker', '.tgs')
USERNAME_RE = re.compile(
r'@|(?:https?://)?(?:www\.)?(?:telegram\.(?:me|dog)|t\.me)/(@|joinchat/)?'
)