From bfa46f47ed700c3cb4afd56af5e4f6568dc9d0d4 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Sun, 26 Apr 2020 13:34:34 +0200 Subject: [PATCH] Register application/x-tgsticker to mimetypes --- telethon/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/telethon/utils.py b/telethon/utils.py index 74f90011..95bb65aa 100644 --- a/telethon/utils.py +++ b/telethon/utils.py @@ -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/)?' )