Commit Graph

587 Commits

Author SHA1 Message Date
Dan
adda199c77 Revert "Replace ensure_future usages to create_task"
This reverts commit 9940dd67
2019-08-03 10:37:48 +02:00
Dan
0f9029202e Merge develop -> asyncio 2019-07-30 00:06:06 +02:00
Dan
8f56610c2c Add examples to utility methods 2019-07-25 11:17:28 +02:00
Dan
184f851625 Fix idle() and run() breaking after latest changes 2019-07-21 02:22:46 +02:00
Dan
c30e8f9c55 Don't start the client in case run() is called with a coroutine as arg 2019-07-15 01:26:29 +02:00
Dan
9940dd678f Replace ensure_future usages to create_task 2019-07-15 00:51:32 +02:00
Dan
385ab22b68 Rework Client.idle()
idle() is now static and doesn't stop the client anymore
2019-07-11 19:59:56 +02:00
Dan
fed8cbf87e Add new set_parse_mode utility method 2019-07-11 19:28:33 +02:00
Dan
e1197e066e Use a better name for the special plugin attribute when decorating funcs 2019-07-11 17:14:38 +02:00
Dan
d441f16879 Merge develop -> asyncio 2019-07-11 04:17:46 +02:00
Dan
e039c1fb80 Update Client.idle() docstrings to make summary clearer 2019-07-09 20:03:03 +02:00
Dan
ee1f6e2c9f Fix errors and warnings when using Pyrogram async with Python <3.5.3 2019-07-04 12:57:07 +02:00
Dan
656aa4a7ca Enable scheduling of more than 1 updates worker 2019-06-24 17:33:33 +02:00
Dan
1e546099a3 Merge develop -> asyncio 2019-06-23 01:35:53 +02:00
Dan
31f39a00ab Make plugin callback functions return the function itself when decorated 2019-06-23 01:33:46 +02:00
Dan
3f261823a7 Merge branch 'develop' into asyncio 2019-06-20 14:17:58 +02:00
Dan
9ebf2983fe Cast Paths to string: pathlib for older pythons doesn't properly work 2019-06-20 14:15:02 +02:00
Dan
a8dfe61f7e Merge develop -> asyncio 2019-06-20 04:17:24 +02:00
Dan
30192de1ad Update pyrogram/client to accommodate Storage Engines 2019-06-19 16:10:37 +02:00
Dan
682591ea8f Update Auth and Session to accommodate Storage Engines 2019-06-19 16:02:29 +02:00
Dan
142d5ab335 Merge branch 'develop' into session_storage
# Conflicts:
#	pyrogram/client/client.py
#	pyrogram/client/ext/base_client.py
#	pyrogram/client/ext/syncer.py
#	pyrogram/client/methods/contacts/get_contacts.py
2019-06-15 23:52:34 +02:00
Dan
80d8443be4 Fix script executions not working outside the current directory
Fixes #41
2019-06-15 23:02:31 +02:00
Dan
684aef3ded Fix files downloaded with no file name 2019-06-11 21:12:00 +02:00
Dan
fd0a40442a Fix plugins not getting reloaded properly when restarting a client 2019-06-11 18:31:38 +02:00
Dan
fd3c8cf94f Merge develop -> asyncio 2019-06-07 19:26:27 +02:00
Dan
c65e210c03 Fix FileData namedtuple using Python 3.7+ features 2019-06-07 18:48:34 +02:00
Dan
9bd9d7797b Replace "with await" with "async with" 2019-06-05 11:58:29 +02:00
Dan
7c3bbb3fc7 Merge develop -> asyncio 2019-06-05 11:25:31 +02:00
Dan
d5517f4d5f Rename Object to TLObject 2019-06-03 14:19:50 +02:00
Dan
d4dbff3226 Merge develop -> asyncio 2019-06-02 19:14:16 +02:00
Dan
d243ebc2cd Performance improvements 2019-06-01 13:18:48 +02:00
Dan
0340271b33 Refactor docstrings 2019-05-30 15:23:43 +02:00
Dan
55599e33c6 Rework download_media to accommodate L100 changes 2019-05-29 10:40:37 +02:00
Dan
c2424029b5 Fix dialogs after L100 update 2019-05-29 09:37:50 +02:00
Dan
39439255fd Merge develop -> asyncio 2019-05-25 02:02:37 +02:00
Dan
47c06fdae2 Docs revamp. Part 7 2019-05-25 01:37:55 +02:00
Dan
0dc953c320 Update domain name references to pyrogram.org 2019-05-19 21:40:41 +02:00
Dan
518220431e Docs revamp. Part 5 2019-05-18 01:45:01 +02:00
Dan
944b672fe5 Docs revamp. Part 4 2019-05-16 21:28:34 +02:00
Dan
90115448ac Update link hint for No API Key found errors 2019-05-13 16:37:26 +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
eadda551c6 Docs revamp. Part 3 2019-05-12 19:26:55 +02:00
Dan
1737ba5f49 Revamp docs about the main Pyrogram package 2019-05-09 04:28:46 +02:00
Dan
bd9bb83df5 Reword some methods' docstring 2019-05-07 18:26:27 +02:00
Dan
591499121f Add an hint about which client is loading the plugins 2019-05-06 17:40:40 +02:00
Dan
762ea3e62e Add an hint about which client is loading the plugins 2019-05-06 17:39:57 +02:00
Dan
952f9bc503 Merge branch 'develop' into asyncio
# Conflicts:
#	pyrogram/__init__.py
#	pyrogram/client/ext/base_client.py
#	pyrogram/client/methods/messages/delete_messages.py
#	pyrogram/client/types/messages_and_media/message.py
2019-04-30 11:51:36 +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
bakatrouble
952f0627f1 Merge branch 'develop' into session_storage
# Conflicts:
#	pyrogram/client/client.py
#	pyrogram/client/ext/base_client.py
#	pyrogram/client/ext/syncer.py
#	pyrogram/client/style/html.py
#	pyrogram/client/style/markdown.py
2019-04-14 21:49:45 +03:00
Dan
9100a43f7b Merge branch 'develop' into asyncio
# Conflicts:
#	pyrogram/client/methods/chats/set_chat_description.py
2019-04-13 16:26:50 +02:00