Animesh Murmu
b43b20351f
Pyrofork: Add Mongodb Session Storage
...
Signed-off-by: wulan17 <wulan17@nusantararom.org>
Co-authored-by: wulan17 <wulan17@nusantararom.org>
Pyrofork: Use session name as database name, add some parameters informations and some cleanup (#3 )
Changes to be committed:
modified: pyrogram/client.py
modified: pyrogram/storage/mongo_storage.py
Signed-off-by: wulan17 <wulan17@nusantararom.org>
PyroFork: storage: mongo: Use existing database connection
support both async_pymongo and motor
Signed-off-by: wulan17 <wulan17@nusantararom.org>
PyroFork: Use Dummy client object to check wether connection object is valid or not
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-08-18 03:37:39 +07:00
wulan17
9e82bd0b57
Pyrofork: Add alt_port parameter to Client
...
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-08-18 03:30:28 +07:00
wulan17
7a1684f074
PyroFork: rebrand
...
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-08-18 01:35:50 +07:00
Dan
0a90d54010
Separate cases between Channel and ChannelForbidden
2023-03-12 17:52:03 +01:00
Dan
a3a4a0204c
Update chat username parsing in case of multiple usernames
2023-03-11 16:45:32 +01:00
Dan
82b8c7792e
Allow to specify a limit to concurrent transmissions
2023-01-12 18:19:15 +01:00
Dan
d53e1c235b
Lower the logging level of some log calls
2023-01-09 15:19:55 +01:00
Dan
8441ce2f47
Limit the amount of concurrent transmissions
2023-01-08 17:11:02 +01:00
Dan
2de8f1921c
Fix resolving peers for users with multiple usernames
...
This currently makes it work for the first available username only
2022-12-30 18:07:15 +01:00
Dan
1e6209da3b
Add support for email sign in codes
...
Fixes #1183
2022-12-30 15:55:52 +01:00
Dan
9bf742abc0
Introduce back some previously reverted changes
2022-12-27 13:40:42 +01:00
Dan
bff583ed75
Revert some of the latest changes
2022-12-26 22:26:55 +01:00
Dan
01cd8bb57f
Optimize log calls
2022-12-26 16:38:12 +01:00
Dan
7e5d593544
Keep lang_code lowercase
2022-12-26 16:19:26 +01:00
Dan
b23e34494e
Add messages for mismatched checks
2022-12-25 15:08:02 +01:00
omg-xtao
c4a47b99ae
Add support for Fragment SMS codes ( #1170 )
2022-12-23 20:36:00 +01:00
Dan
a9e7d15bf6
Add a watchdog for incoming updates
2022-12-23 15:40:56 +01:00
Anton Kovalevich
a76269ddaf
Handle all given updates, avoid short circuit ( #1162 )
2022-12-12 21:53:09 +01:00
Dan
4edaa21c19
Don't create download dirs for in-memory downloads
2022-09-20 16:39:53 +02:00
Dan
71f263b30d
Re-raise asyncio.CancelledError to avoid continuations
2022-09-18 17:55:50 +02:00
Dan
3940ca9611
Revamp handling of partial downloads
2022-09-18 17:32:02 +02:00
Nyan
468ebf50cf
Add tempfile deletion in case of asyncio task cancellation. ( #1080 )
2022-09-18 17:24:51 +02:00
Dan
d71db29a8c
Store the "me" user object
2022-06-20 10:28:49 +02:00
Dan
956e5c1a4f
Clean up on download's stop_transmission and return None
2022-05-04 09:04:25 +02:00
Evgen Fil
795ffc027a
Allow non-interactive migration from storage v2 to v3 ( #979 )
2022-04-29 12:40:19 +02:00
Hitalo
045fe0bf21
Remove wrong Client.parse_mode assignment ( #973 )
2022-04-27 09:13:47 +02:00
Dan
6e3dbbde5a
Allow passing the api_id as string
2022-04-24 21:20:13 +02:00
Dan
228b45b179
Update docstrings
2022-04-24 21:19:36 +02:00
lordcodes
240659f616
Close the downloaded file before moving it ( #964 )
...
* download media on windows fix
mmmmmmmm
* Style fixes
Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
2022-04-24 17:06:45 +02:00
Dan
c799703965
Fix plugins loading
2022-04-24 13:11:54 +02:00
Dan
822e09ae13
Update Client's docstrings
2022-04-24 11:56:07 +02:00
Dan
ade31f8989
Update the session string format
2022-04-24 11:56:07 +02:00
Dan
3e33ef0c0d
Add support for media streams with the method stream_media
2022-04-24 11:56:07 +02:00
Dan
01ca652f8c
Add support for in-memory downloads
2022-04-24 11:56:07 +02:00
Dan
296b866234
Improve performance by adding a message cache
2022-04-24 11:56:07 +02:00
Dan
124bcb4db7
Remove API key requirement for existing sessions
2022-04-24 11:56:07 +02:00
Dan
b47591e6d2
Turn examples asynchronous
2022-04-24 11:56:07 +02:00
Dan
41f16a17c9
Fix filters.command not working with multiple running bots
...
Closes #864
2022-04-24 11:56:07 +02:00
Dan
78efb04b40
Rename Client.send to Client.invoke
2022-04-24 11:56:07 +02:00
Dan
32624ef5e6
Improve type hints
2022-04-24 11:56:06 +02:00
Dan
bbad58a83f
Add enumerations
2022-04-24 11:56:06 +02:00
Dan
58eb10a676
Remove unneeded try...except block
2022-03-14 12:07:34 +01:00
Dan
626a1bd938
Update copyright year
2022-01-07 10:23:45 +01:00
Dan
8c8288412f
Various improvements
2022-01-07 10:18:51 +01:00
Dan
a3fab6af4b
Merge branch 'mtproto-checks'
...
# Conflicts:
# pyrogram/errors/__init__.py
# pyrogram/session/session.py
2021-12-24 16:28:29 +01:00
AduchiMergen
ef6125b57a
Fix -503 Timeout errors #664 ( #812 )
2021-12-20 20:22:56 +01:00
Dan
8aa358129c
Use specialized exceptions for handling security checks
2021-12-16 21:38:24 +01:00
Alisson Lauffer
df4419da8f
Make parse_mode always lowercase ( #575 )
...
* Make parse_mode always lowercase
* Update client.py
Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
2021-05-12 08:49:48 +02:00
Dan
2eef1d5fcf
Accommodate changes to photo file ids
2021-04-26 16:00:21 +02:00
Jonathan
73a1fee28a
Fix stackable plugin decorators with include/exclude directives ( #643 )
...
* combination of decorators with plugins has solved
* fixing last pr: allow stackable plugin decorators even in exclude and include as well.
* counting plugins has fixed
* fix indentation
* Update client.py
* Update client.py
Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
2021-03-18 11:34:36 +01:00