Dan
c9ce188bbe
Remove "bot" property from UserStatus
2018-10-14 17:56:10 +02:00
Dan
69c1532eae
Rename LastSeen to UserStatus
...
It will make more sense later on when I add UserStatus updates
handler.
2018-10-14 17:17:50 +02:00
Dan
7b369a73bb
Add parse_last_seen util method
2018-10-14 17:11:27 +02:00
Dan
d2f47d7e59
Add last_seen field to User parse_last_seen
2018-10-14 17:11:01 +02:00
Dan
465dcac630
Create LastSeen class
2018-10-14 17:08:49 +02:00
Dan
b79df81f14
Allow specifying more than one prefix in Filters.command
2018-10-14 14:24:53 +02:00
Dan
aa15350a2d
Merge branch 'develop' into plugins
2018-10-14 12:28:09 +02:00
Dan
474388d8a4
Small improvements on UpdateHandling.rst
2018-10-14 12:28:00 +02:00
Dan
c744bba60f
Add clearer details
2018-10-14 12:02:48 +02:00
Dan
d03f04a560
Add more and clearer examples in the Usage.rst page
2018-10-14 11:59:55 +02:00
Dan
3659ea82fb
Small fixes to the Setup.rst page
2018-10-14 11:58:23 +02:00
Dan
a3272d28d4
Update installation.rst
2018-10-14 11:47:30 +02:00
Dan
f063726d93
Update index.rst
2018-10-14 11:46:44 +02:00
Dan
317f584a2a
Yet another badge style change
2018-10-14 11:14:10 +02:00
Dan
d576cdffb3
Fix reported schema layer
2018-10-14 10:48:39 +02:00
Dan
d5097f0b39
Change badge style and rename scheme to schema
2018-10-14 10:48:17 +02:00
Dan
f4146a8779
Accept None as plugins_dir
2018-10-13 19:33:43 +02:00
Dan
29c3142958
Index Plugin.rst
2018-10-13 16:54:13 +02:00
Dan
c5006fcf1e
Add Plugins.rst
...
Documentation for Plugins
2018-10-13 16:53:51 +02:00
Dan
8e238ccc9a
Add plugins_dir docstrings in Client class definition
2018-10-13 11:14:26 +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
345ac6e16a
Merge branch 'develop' into plugins
2018-10-13 10:42:07 +02:00
Dan
9649b1457c
Don't make use of hardcoded default int values too
2018-10-13 10:41:58 +02:00
Dan
340fb9c145
Merge branch 'develop' into plugins
...
# Conflicts:
# pyrogram/client/client.py
# pyrogram/client/ext/base_client.py
2018-10-13 10:39:47 +02:00
Dan
a32009a79d
Don't make use of hardcoded default string values
2018-10-13 10:38:44 +02:00
Dan
6a0066b8b5
Move loading plugins logic into a separate method
2018-10-12 17:57:34 +02:00
Dan
4bb50ee35f
More logs when loading plugins
2018-10-12 17:54:52 +02:00
Dan
6c05f9ff42
Sanitize (a bit) plugins directory
2018-10-12 15:26:52 +02:00
Dan
4e516d097f
Don't raise exceptions in case of non-existent plugins folder
...
Don't even warn in case the default plugins folder doesn't exist
2018-10-12 14:32:35 +02:00
Dan
0b79f96b4f
Turn hardcoded plugins dir into a constant
2018-10-12 14:19:26 +02:00
Dan
dfb841baa9
Automatically scan and load plugins from a customizable directory
...
Defined functions found inside the directory that are also decorated
properly will be registered in the Client's dispatcher as handlers.
2018-10-12 14:17:03 +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
c2da2a61ec
Update welcome_bot.py
2018-10-09 16:37:53 +02:00
Dan
be7194f89e
Put example descriptions at the very top of the files
2018-10-09 15:23:40 +02:00
Dan
fd306c383d
Remove LGPLv3 license notices from example files
...
Examples are licensed under the terms of CC0 1.0 Universal License
2018-10-09 15:21:36 +02:00
Dan
9409d9cd8f
Hint about examples' license in README.md
2018-10-09 15:17:15 +02:00
Dan
133682ca48
Add CC0 1.0 Universal License
2018-10-09 15:07:12 +02:00
Dan
65fb30ce1c
Update examples' README.md
2018-10-09 14:49:42 +02:00
Dan
eb276cbbd5
Remove get_participants.py and get_participants2.py
2018-10-09 14:49:12 +02:00
Dan
5e8be0e6ef
Make use of the "with" context manager
2018-10-09 14:48:43 +02:00
Dan
95821f088b
Add get_chat_members2.py
2018-10-09 14:47:47 +02:00
Dan
184fb563aa
Add short description
2018-10-09 14:45:51 +02:00
Dan
aad72ed9b2
Add get_chat_members.py
2018-10-09 14:37:22 +02:00
Dan
b28f2ebbcb
Update callback_query_handler.py
2018-10-09 14:08:14 +02:00
Dan
acd525294f
Add CallbackQuery.answer bound method
2018-10-09 14:08:01 +02:00
Dan
1be144288c
Add a proxy to the Client instance inside CallbackQuery objects
2018-10-09 14:07:01 +02:00
Dan
7b76751e8f
Update get_history.py
2018-10-09 13:51:29 +02:00