pyrofork/pyrogram
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
..
api Fix core types not being printed because of missing __slots__ 2019-03-28 14:01:16 +01:00
client Bring back automatic mime type detection for new uploads (fixes #239) 2019-04-20 18:56:30 +02:00
connection Reformat code 2019-03-16 17:51:37 +01:00
crypto Update copyright year 2019-01-01 12:36:16 +01:00
errors Refactor project and move errors namespace out from pyrogram.api 2019-03-25 11:23:45 +01:00
session Refactor project and move errors namespace out from pyrogram.api 2019-03-25 11:23:45 +01:00
vendor Reformat code 2019-03-16 17:51:37 +01:00
__init__.py Update to v0.12.0 2019-04-14 12:45:06 +02:00