Dan
|
e400641204
|
Fix Dispatcher bad behaviours in case of multiple Clients running at the same time.
|
2018-11-13 20:31:53 +01: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
|
99bdaae365
|
Allow nested folders for smart plugins
|
2018-10-23 15:43:49 +02:00 |
|
Dan
|
a0780d793d
|
Apply code review suggestions
|
2018-10-21 14:44:29 +07:00 |
|
Dan
|
1fe46610cd
|
Make plugins disabled by default
Users need to explicitly set plugins_dir parameter
|
2018-10-21 09:42:22 +02:00 |
|
Alexandr
|
ee47c21eed
|
Add file size limit error
|
2018-10-19 23:39:29 +07: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
|
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
|
b79bd1ea83
|
Don't swallow left_chat_member updates
Even though they are only relevant for supergroups with <50 members
|
2018-10-01 09:45:32 +02:00 |
|
Dan
|
12c61fb431
|
Fix unwanted CHANNEL_PRIVATE errors. Fixes #129
|
2018-10-01 09:40:34 +02:00 |
|
Dan
|
6a89c7ea02
|
Add missing ipv6 docstrings
|
2018-09-22 14:21:55 +02:00 |
|
Dan
|
3a858e6a57
|
Fix config values not being available when not using config.ini file
|
2018-09-19 17:30:23 +02:00 |
|
Dan
|
8b364202c3
|
Use list instead of set
|
2018-09-18 19:17:28 +02:00 |
|
Dan
|
500ec09b47
|
Clean up load_config
|
2018-09-18 19:16:55 +02:00 |
|
Dan
|
f850d6352e
|
Enhance API by adding support for Context Managers. Closes #122
A batch script would be as simple as this example:
from pyrogram import Client
with Client("...") as app:
app.send_message("haskell", "hi")
|
2018-09-17 18:53:04 +02:00 |
|
Dan
|
e7a85520f2
|
Merge remote-tracking branch 'origin/develop' into develop
# Conflicts:
# pyrogram/client/client.py
|
2018-09-17 15:59:49 +02:00 |
|
Dan
|
c75a4f182a
|
Handle Telegram exceptions on start(). Fixes #121
The client doesn't need to be stopped as it never started successfully.
|
2018-09-15 13:23:25 +02:00 |
|
Dan
|
db6042e91b
|
Fetch ChatForbidden and ChannelForbidden peers
This fixes unwanted PEER_ID_INVALID errors in cases where a user or a
bot was kicked/banned from a group, supergroup or channel
|
2018-09-02 13:04:29 +02:00 |
|
Dan
|
9f4d7854e8
|
Fix ipv6 branch merge mess
|
2018-08-30 01:23:19 +02:00 |
|
Dan
|
4b3b647245
|
Merge branch 'ipv6' into develop
# Conflicts:
# pyrogram/client/client.py
# pyrogram/session/session.py
|
2018-08-28 12:19:37 +02:00 |
|
Dan
|
2779e33d13
|
Rename "token" to "bot_token"
|
2018-09-10 19:55:53 +02:00 |
|
Dan
|
da436461a8
|
Revert "Move resolve_peer into utilities"
This reverts commit 6437c6c
|
2018-08-10 11:29:13 +02:00 |
|
Dan
|
6437c6c5be
|
Move resolve_peer into utilities
|
2018-08-10 11:17:53 +02:00 |
|
Dan
|
d270d0d2aa
|
Remove support for t.me/joinchat/ links in resolve_peer for now
Another way, which is 100% reliable, will be implemented
Also clean the method a bit by removing useless checks
|
2018-07-28 23:09:44 +02:00 |
|
Dan
|
0c96fa8b7c
|
Don't flush each chunk. Let python/os deal with it
|
2018-07-11 17:05:33 +02:00 |
|
Dan
|
1d7c857e9f
|
Rename get_dialogs
|
2018-07-04 21:02:26 +02:00 |
|
Dan
|
52f1f390ca
|
Rename get_dialogs
|
2018-07-04 20:59:21 +02:00 |
|
Dan
|
8bdccda6ee
|
Fix GetDialog call
|
2018-07-04 14:03:45 +02:00 |
|
Dan
|
c7489cf302
|
Reformat code
|
2018-07-04 14:03:14 +02:00 |
|
Dan
|
29fb0ce599
|
Also log UpdatesTooLong
|
2018-07-04 13:53:34 +02:00 |
|
Dan
|
e414956e71
|
Log UpdateChannelTooLong updates
|
2018-07-03 18:29:25 +02:00 |
|
Dan
|
c660d3a7d0
|
Fix PhotoSize not having date anymore
|
2018-07-01 19:43:29 +02:00 |
|
Dan
|
7ed9cd6759
|
Add "Login successful" message upon login
|
2018-06-27 14:42:04 +02:00 |
|
Dan
|
ecaba45523
|
Keep only lang_code
|
2018-06-27 00:42:32 +02:00 |
|
Dan
|
2587394e07
|
Merge branch 'layer-81' into develop
|
2018-06-25 00:43:47 +02:00 |
|
Dan
|
fa7b7d0ce3
|
Cleanup Client class
|
2018-06-24 19:09:39 +02:00 |
|
Dan
|
9c420bb73b
|
Document the new parameters. Closes #86
|
2018-06-24 19:09:39 +02:00 |
|
Dan
|
9a012077cc
|
Remove some redundant code. Related to #86
|
2018-06-24 18:54:47 +02:00 |
|