pyrofork/pyrogram/client/ext
Dan 63d76a7f13 Bring back automatic mime type detection for new uploads (fixes #239)
- Add mime.types file to contain a good database of type -> ext mappings
  from svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types

- Load mime.type at BaseClient creation and add two convenience methods
  for guessing mime types from filenames and extensions from mime types,
  guess_mime_type and guess_extension

- Make all send_* method as well as download_media use the new mime type
  database via guess_mime_type and guess_extension methods
2019-04-20 18:56:30 +02:00
..
__init__.py Move dispatcher.py inside ext folder 2019-03-25 09:45:37 +01:00
base_client.py Bring back automatic mime type detection for new uploads (fixes #239) 2019-04-20 18:56:30 +02:00
chat_action.py Update copyright year 2019-01-01 12:36:16 +01:00
dispatcher.py Move dispatcher.py inside ext folder 2019-03-25 09:45:37 +01:00
emoji.py Update copyright year 2019-01-01 12:36:16 +01:00
mime.types Bring back automatic mime type detection for new uploads (fixes #239) 2019-04-20 18:56:30 +02:00
parse_mode.py Update copyright year 2019-01-01 12:36:16 +01:00
syncer.py Add bot_token argument (#221) 2019-03-01 18:30:39 +01:00
utils.py Force keyword arguments for all TL types 2019-03-16 16:53:52 +01:00