mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-29 04:43:45 +03:00
Manually register webp mimetype
Otherwise, sending stickers would fail on some systems.
This commit is contained in:
parent
8a9650f131
commit
0e91fc3668
|
@ -24,6 +24,10 @@ try:
|
|||
except ImportError:
|
||||
hachoir = None
|
||||
|
||||
# .webp mimetype is unknown on some operative systems, so stickers won't
|
||||
# work. Manually register it here to make sure stickers work everywhere.
|
||||
mimetypes.add_type('image/webp', '.webp')
|
||||
|
||||
USERNAME_RE = re.compile(
|
||||
r'@|(?:https?://)?(?:www\.)?(?:telegram\.(?:me|dog)|t\.me)/(joinchat/)?'
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user