Dan
944b672fe5
Docs revamp. Part 4
2019-05-16 21:28:34 +02:00
Dan
1737ba5f49
Revamp docs about the main Pyrogram package
2019-05-09 04:28:46 +02:00
Dan
5905f761fa
Add PollHandler type and on_poll decorator for handling Poll updates
2019-04-14 20:50:13 +02:00
Dan
05aed5e0e1
Clean up documentation pages
2019-04-12 15:52:06 +02:00
Dan
921800f902
Clean up docstrings
2019-03-22 11:53:25 +01:00
Dan
fede74398c
Fix inline-mode branch breaking after many commits from develop
2019-03-21 18:37:00 +01:00
Dan
acbbfabb27
Merge branch 'develop' into inline-mode
...
# Conflicts:
# compiler/api/compiler.py
# compiler/error/source/400_BAD_REQUEST.tsv
# pyrogram/__init__.py
# pyrogram/client/dispatcher/dispatcher.py
# pyrogram/client/ext/utils.py
# pyrogram/client/methods/bots/__init__.py
# pyrogram/client/types/__init__.py
2019-03-21 17:40:49 +01:00
Dan
3e18945f3c
Reformat code
2019-03-16 19:23:23 +01:00
Dan
4d7b1bafac
Update copyright year
2019-01-01 12:36:16 +01:00
Dan
6e964b51b1
Type hint on_message decorator
2018-12-24 14:50:04 +01:00
Dan
a0355a5cc4
Type hint all methods return values
2018-12-19 15:59:15 +01:00
Dan
b593463bd7
Type hint all the remaining method parameters
2018-12-19 14:50:23 +01:00
Dan
6a9c7312cc
Document how decorated functions are modified
2018-12-15 09:10:19 +01:00
Dan
2e16499369
Allow decorators to be stacked
...
E.g:
app1.on_message(...)
app2.on_message(...)
app3.on_message(...)
def on_message(client, message):
...
2018-11-10 15:21:52 +01:00
Dan
fafa3b5131
Fix some decorators not working when used in plugins
2018-11-10 15:15:58 +01:00
Dan
55cca00401
Add on_inline_query decorator
2018-11-09 13:08:50 +01:00
Dan
c8604e8e2c
Update on_user_status decorator
2018-10-16 12:58:11 +02:00
Dan
9e159a3f50
Merge branch 'plugins' into develop
2018-10-16 12:12:21 +02:00
Dan
d567b878b1
Expose UserStatusHandler and on_user_status
2018-10-15 10:17:00 +02:00
Dan
2eae08aaa6
Add on_user_status decorator
2018-10-15 10:16:19 +02:00
Dan
96b39970d6
Allow on_callback_query to be used as a static decorator
2018-10-13 10:55:41 +02:00
Dan
6fdb90e4a4
Allow on_deleted_messages to be used as a static decorator
2018-10-13 10:54:13 +02:00
Dan
54296a6fda
Allow on_disconnect to be used as a static decorator
2018-10-13 10:47:39 +02:00
Dan
1fdc757f2a
Allow on_raw_update to be used as a static decorator
2018-10-13 10:46:29 +02:00
Dan
0025489c86
Allow on_message to behave like a static decorator
...
This enabled usages like @Client.on_message(...).
To preserve positional arguments order and thus ease the static
decorator usage there's a not-so-elegant hack in place that shifts
values.
2018-10-12 14:12:29 +02:00
Dan
6be8f1aae3
Cross reference Handler classes on decorators' docstrings
2018-06-22 12:46:58 +02:00
Vitali
e6c6bd839c
Add Handler to deleted messages update
2018-06-19 11:18:12 -03:00
Dan
dacc0173f1
Document on_disconnect
2018-05-31 13:15:47 +02:00
Dan
9001ccd11f
Add DisconnectHandler
2018-05-23 14:27:17 +02:00
Dan
8454d438be
Refactor the project by using Mixin classes
...
This will cut client.py down from ~4k to ~1k SLOC and also
makes the whole project tidier and more organized.
2018-05-07 14:30:55 +02:00