Commit graph

61 commits

Author SHA1 Message Date
wulan17
a2bd7f5ad0
Pyrofork: Add alt_port parameter to Client
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-08-15 20:37:54 +07:00
wulan17
b85430ca04
PyroFork: Add custom storage support
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-06-27 19:14:44 +07:00
wulan17
8272c706a6
PyroFork: storage: mongo: Use existing database connection
support both async_pymongo and motor

Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-05-23 21:13:16 +07:00
Juan Simon .D
89feb4a4d8
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>
2023-05-21 20:17:05 +07:00
Animesh Murmu
c646595adb
Pyrofork: Add Mongodb Session Storage
Signed-off-by: wulan17 <wulan17@nusantararom.org>
Co-authored-by: wulan17 <wulan17@nusantararom.org>
2023-05-10 19:36:46 +07:00
Dan
d398b5b29c
Separate cases between Channel and ChannelForbidden
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-03-17 00:59:21 +07:00
Dan
8940c7d1f6
Update chat username parsing in case of multiple usernames
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-03-17 00:59:20 +07:00
wulan17
42a2f04d8e
Revert "PyroFork: Add listen and ask"
This reverts commit e39fdcca0e.

Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-01-17 20:43:44 +07:00
Cezar Pauxis
e39fdcca0e
PyroFork: Add listen and ask
Co-authored-by: wulan17 <wulan17@nusantararom.org>
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-01-05 01:58:09 +07:00
Dan
64177b533c
Fix resolving peers for users with multiple usernames
This currently makes it work for the first available username only
2023-01-01 23:12:45 +07:00
Dan
3c0e86a167
Add support for email sign in codes
Fixes #1183
2023-01-01 23:12:45 +07:00
omg-xtao
3e219771bd
Add support for Fragment SMS codes (#1170) 2023-01-01 23:11:07 +07:00
Anton Kovalevich
b038890745
Handle all given updates, avoid short circuit (#1162) 2022-12-14 13:36:52 +07: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
Jonathan
f0b1cc41f3
Allow decorators in plugins to be stacked (#642)
This allows registering the same callback function more than once by using different handlers.
2021-03-17 20:07:54 +01:00
Dan
d7f2bd9030 Fix some index out of range errors
Closes #601
2021-02-27 19:02:52 +01:00
Dan
7dda167c09 Update copyright notice
Year 2021
2021-01-01 22:58:48 +01:00
Dan
820fe2cbcd Fix thumbnail downloads 2021-01-01 22:21:06 +01:00
Dan
18b3ca1892 Simplify mime types guessing and remove unused code 2020-12-20 17:58:35 +01:00