Furoin
|
b4bc7deba0
|
added Filters.user("me")
|
2018-11-08 17:11:43 +03:00 |
|
Vankineeni Tawrun
|
cdabf3e7e0
|
added args to Message.download bound method
|
2018-11-08 19:08:56 +05:30 |
|
Dan
|
774462283e
|
Update service and media filter docstrings
|
2018-11-08 11:10:24 +01:00 |
|
Dan
|
f6d3db3662
|
Update docstring style
|
2018-11-08 11:03:47 +01:00 |
|
Dan
|
b747f87319
|
Update Filters.media
|
2018-11-08 10:50:52 +01:00 |
|
Dan
|
e760550f8b
|
Add Message.media field
|
2018-11-08 10:49:32 +01:00 |
|
Dan
|
f26e20d30e
|
Update Filters.service
|
2018-11-08 10:44:32 +01:00 |
|
Dan
|
fc7b77e2b9
|
Add Message.service field
|
2018-11-08 10:40:46 +01:00 |
|
Dan
|
32a09ffc4c
|
Add Message.empty field
|
2018-11-08 10:28:11 +01:00 |
|
Dan
|
f8844d60ab
|
Handle possible MESSAGE_IDS_EMPTY errors in case of pinned messages
|
2018-11-07 13:11:33 +01:00 |
|
Dan
|
648eb80928
|
Add Message.edit() bound method
|
2018-11-07 12:03:57 +01:00 |
|
Dan
|
160420bda4
|
Merge pull request #155 from Furoin/chat
Allow using "me" or "self" in Filters.chat
|
2018-11-06 17:41:12 +01:00 |
|
Dan
|
5efd608487
|
Update Filters.chat docstrings
|
2018-11-06 17:40:37 +01:00 |
|
Dan
|
5571888143
|
Add mentioned docstrings
|
2018-11-06 17:37:32 +01:00 |
|
Dan
|
0943761a91
|
Update filters.py
|
2018-11-06 17:32:46 +01:00 |
|
Dan
|
5da5cabf4c
|
Remove useless variable
|
2018-11-06 17:31:04 +01:00 |
|
Furoin
|
1adc812108
|
added Filters.chat("me")
|
2018-11-06 18:36:40 +03:00 |
|
Furoin
|
2d0ffcb0f4
|
added Filters.mentioned
|
2018-11-06 17:13:37 +03:00 |
|
Furoin
|
91beb214e9
|
added message.mentioned
|
2018-11-06 17:11:35 +03:00 |
|
Dan
|
03f57cd2af
|
Use TCPAbridgedO as default connection mode
|
2018-11-05 17:33:12 +01:00 |
|
Dan
|
5532c12e56
|
Update dev version
|
2018-11-05 17:32:11 +01:00 |
|
Dan
|
e3a93b339c
|
Update to v0.9.1
|
2018-11-04 17:50:51 +01:00 |
|
Dan
|
ff7ee4678a
|
Catch possible MESSAGE_IDS_EMPTY errors
|
2018-11-04 17:25:39 +01:00 |
|
Dan
|
966926d383
|
Remove unneeded FloodWait check
|
2018-11-04 16:53:23 +01:00 |
|
Dan
|
46e19c395c
|
Don't encode callback data when sending inline buttons
|
2018-11-04 11:36:10 +01:00 |
|
Dan
|
af937152a1
|
Don't decode inline buttons callback data
Clients are able to set any value as plain bytes, this means UTF-8
decoding could fail.
|
2018-11-04 09:36:58 +01:00 |
|
Dan
|
30c0086fde
|
Fix missing total_count for ChatMembers in channels/supergroups
|
2018-11-03 22:01:26 +01:00 |
|
Dan
|
96af2ebcf2
|
Fix getattr failing for ChannelForbidden objects
|
2018-11-03 17:04:04 +01:00 |
|
Dan
|
106fc0f458
|
Update to v0.9.0
|
2018-11-03 14:35:26 +01:00 |
|
Furoin
|
bc703ae6d7
|
added Filters.dan
|
2018-11-03 14:57:57 +03:00 |
|
Dan
|
c006ba5b30
|
Merge pull request #146 from TolichP/add-filesize-limit-error
Add file size limit error
|
2018-11-03 11:11:06 +01:00 |
|
Dan
|
09563067c7
|
Add a check for 0 B file sizes
|
2018-11-03 11:10:43 +01:00 |
|
Dan
|
45129658b0
|
Revisit docstrings
|
2018-11-03 10:49:11 +01:00 |
|
Dan
|
0c76774283
|
Reformat code
|
2018-11-02 10:26:59 +01:00 |
|
Dan
|
27d10b04c0
|
Update dev version
|
2018-11-02 10:23:41 +01:00 |
|
Dan
|
529ef143f0
|
Remove debugging piece of code
|
2018-10-28 19:52:54 +01:00 |
|
Dan
|
229b8df9cd
|
Fix bad behaviours of get_messages
|
2018-10-28 17:44:24 +01:00 |
|
Dan
|
005c24e4bd
|
Update get_messages docstrings
|
2018-10-28 17:24:37 +01:00 |
|
Dan
|
6cf6d49634
|
Update utils to accommodate changes on get_messages
|
2018-10-28 17:24:05 +01:00 |
|
Dan
|
daee188fa5
|
Update get_messages to accept the new reply_to_message_ids argument
|
2018-10-28 17:23:30 +01:00 |
|
Dan
|
39636f2843
|
Update get_messages signature
|
2018-10-28 17:18:00 +01:00 |
|
Dan
|
4fd93a790f
|
Small fixes and rewords
|
2018-10-28 15:27:49 +01:00 |
|
Dan
|
0a946033c3
|
Move optional field down after required fields
|
2018-10-28 15:27:20 +01:00 |
|
Dan
|
11b7c3b52a
|
Remove unused game field from Message
|
2018-10-28 15:26:46 +01:00 |
|
Dan
|
c9462911cf
|
Fix Filters.command ignoring commands with empty prefixes
|
2018-10-25 14:47:18 +02:00 |
|
Dan
|
99bdaae365
|
Allow nested folders for smart plugins
|
2018-10-23 15:43:49 +02:00 |
|
Dan
|
7d4dfa6d12
|
Merge branch 'delete-kicked-message' into develop
|
2018-10-21 09:51:12 +02:00 |
|
Dan
|
a0780d793d
|
Apply code review suggestions
|
2018-10-21 14:44:29 +07:00 |
|
Dan
|
bc08ba86d9
|
Update emojis
|
2018-10-21 09:43:57 +02:00 |
|
Dan
|
35e3471961
|
The restriction_reason field is not always available
|
2018-10-21 09:43:22 +02:00 |
|
Dan
|
1fe46610cd
|
Make plugins disabled by default
Users need to explicitly set plugins_dir parameter
|
2018-10-21 09:42:22 +02:00 |
|
Dan
|
b12c87f50a
|
Make kick_chat_member return the "user kicked" message
|
2018-10-21 09:40:49 +02:00 |
|
Alexandr
|
ee47c21eed
|
Add file size limit error
|
2018-10-19 23:39:29 +07:00 |
|
Dan
|
3f0a355f7e
|
Further optimize and simplify the Dispatcher
|
2018-10-19 11:54:27 +02:00 |
|
Dan
|
09e0345868
|
Small dispatcher clean ups
|
2018-10-18 21:18:22 +02:00 |
|
Dan
|
89362ef684
|
Tiny fix to reflect other docstrings
|
2018-10-18 11:48:55 +02:00 |
|
Dan
|
e88972a8f6
|
Add restriction_reason to User and Chat types. Closes #144
|
2018-10-18 11:10:37 +02:00 |
|
Dan
|
38ff950d01
|
Remove useless #noinspection
|
2018-10-17 21:00:14 +02:00 |
|
Dan
|
426cdbbcb8
|
Don't make use of Update objects when dispatching updates
The Update type is used nowhere, adds costly abstraction and makes the
code uglier. If I ever need it again (unlikely) I can just revert this.
|
2018-10-17 20:59:33 +02:00 |
|
Dan
|
a315c30336
|
Optimize dispatcher.py code
|
2018-10-17 20:37:53 +02:00 |
|
Dan
|
41180fd22a
|
Update max caption length
|
2018-10-16 15:24:54 +02: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
|
8a81bd1221
|
Merge branch 'user-status' into develop
|
2018-10-16 12:07:53 +02:00 |
|
Dan
|
c7a38655c4
|
Merge branch 'update-profile-photo' into develop
|
2018-10-16 11:59:17 +02:00 |
|
Dan
|
841141077f
|
Add better examples to Filters.command
|
2018-10-16 11:53:05 +02:00 |
|
Dan
|
22998af784
|
Fix docstrings
|
2018-10-16 11:45:39 +02:00 |
|
Dan
|
29201674ef
|
Rename delete_profile_photos to delete_user_profile_photos
For consistency with other method names
|
2018-10-16 11:45:20 +02:00 |
|
Dan
|
8fc5b8a545
|
Rename set_profile_photo to set_user_profile_photo
|
2018-10-16 11:43:54 +02:00 |
|
Dan
|
93018a7f6c
|
Add set_profile_photo method
|
2018-10-15 11:03:07 +02:00 |
|
Dan
|
5b17376801
|
Enable dispatching of user status updates
|
2018-10-15 10:18:22 +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
|
ff9be53a95
|
Add UserStatusHandler class
|
2018-10-15 10:14:40 +02:00 |
|
Dan
|
471b5c3334
|
Add user_status field to Update class
|
2018-10-15 10:10:49 +02:00 |
|
Dan
|
4b04910197
|
Add user_id field to UserStatus
|
2018-10-15 10:08:56 +02:00 |
|
Dan
|
79a9ddfab5
|
Some more changed in order to enhance UserStatus API design
|
2018-10-15 10:07:46 +02:00 |
|
Dan
|
b2b599e211
|
Rework user status parsing to also accommodate user_status updates
|
2018-10-15 09:47:47 +02:00 |
|
Dan
|
86e4fc4e62
|
Rename last_seen field to status in User class
Also add docstrings for status
|
2018-10-15 09:20:13 +02:00 |
|
Dan
|
b00604dbc9
|
Move date field
|
2018-10-14 18:00:31 +02:00 |
|
Dan
|
2d65eb3dc7
|
Add UserStatus docstrings
|
2018-10-14 17:56:51 +02:00 |
|
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
|
f4146a8779
|
Accept None as plugins_dir
|
2018-10-13 19:33:43 +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 |
|