Commit Graph

20 Commits

Author SHA1 Message Date
Dan
2dec2442e5 Add examples to all available methods 2019-07-25 11:22:14 +02:00
Dan
62a39521d9 Allow send_media_group send media from URLs 2019-07-19 13:40:12 +02:00
Dan
be3947e20b Fix some methods not working correctly with the new Text Parser 2019-07-02 00:01:18 +02:00
Dan
cfbc5298df Remove Messages type 2019-06-08 15:13:52 +02:00
Dan
715ae14751 Update send_* methods (for file_ids) 2019-05-30 14:57:52 +02:00
Dan
ef912d21ef Use more concise and cleaner description of a method and a type 2019-05-12 19:49:06 +02:00
Dan
1737ba5f49 Revamp docs about the main Pyrogram package 2019-05-09 04:28:46 +02:00
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
Dan
b5c6db6db0 Refactor project and move errors namespace out from pyrogram.api 2019-03-25 11:23:45 +01:00
Dan
27666ec174 Small docs fixes 2019-03-22 12:14:31 +01:00
Dan
3e18945f3c Reformat code 2019-03-16 19:23:23 +01:00
Dan
34b51b6481 Force keyword arguments for all TL types 2019-03-16 16:53:52 +01:00
Dan
50cff068a0 Fix send_* methods sending the incorrect Telegram media message type
This makes Pyrogram consistent with the official Bot API behaviour.
2019-02-12 20:29:05 +01:00
Dan
a2263ad8ce Make send_media_group return the new Messages object 2019-02-05 11:50:32 +01:00
Dan
4d7b1bafac Update copyright year 2019-01-01 12:36:16 +01:00
Dan
84fef9ecf1 Add missing file_reference argument where applicable 2018-12-23 00:55:00 +01:00
Dan
b593463bd7 Type hint all the remaining method parameters 2018-12-19 14:50:23 +01:00
Dan
49b18c600d Add missing thumb for videos in albums. Fixes #169 2018-12-15 08:39:43 +01:00
Dan
32468e5ab0 Remove hints about using t.me/joinchat/ links as chat ids
Such links don't work reliably with the current implementation
2018-07-27 00:40:08 +02:00
Dan
8074ef1368 Make methods directory structure simple 2018-06-23 10:34:20 +02:00