Commit graph

97 commits

Author SHA1 Message Date
wulan17
632921b4b2
pyrofork: set Client.hide_password default value to True
Some checks are pending
Build-docs / build (push) Waiting to run
Pyrofork / build (macos-latest, 3.10) (push) Waiting to run
Pyrofork / build (macos-latest, 3.11) (push) Waiting to run
Pyrofork / build (macos-latest, 3.12) (push) Waiting to run
Pyrofork / build (macos-latest, 3.13) (push) Waiting to run
Pyrofork / build (macos-latest, 3.9) (push) Waiting to run
Pyrofork / build (ubuntu-latest, 3.10) (push) Waiting to run
Pyrofork / build (ubuntu-latest, 3.11) (push) Waiting to run
Pyrofork / build (ubuntu-latest, 3.12) (push) Waiting to run
Pyrofork / build (ubuntu-latest, 3.13) (push) Waiting to run
Pyrofork / build (ubuntu-latest, 3.9) (push) Waiting to run
Signed-off-by: wulan17 <wulan17@komodos.id>
2025-05-16 00:49:46 +07:00
wulan17
9401e246b6
pyrofork: Drop accept_terms_of_service and sign_up method
Signed-off-by: wulan17 <wulan17@komodos.id>
2025-05-16 00:49:46 +07:00
wulan17
e083c5a48f
pyrofork: Refactor Qr Code Signin
Signed-off-by: wulan17 <wulan17@komodos.id>
2025-05-16 00:49:44 +07:00
wulan17
40cd7badd5
pyrofork: Implement QrCode Login
Signed-off-by: wulan17 <wulan17@komodos.id>
2025-05-14 20:48:31 +07:00
wulan17
3e24f006e0
pyrofork: Cleanup codes
Signed-off-by: wulan17 <wulan17@komodos.id>
2025-03-29 00:25:16 +07:00
wulan17
f990b1e7f9
pyrofork: Update documentation url
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-10-13 01:54:55 +07:00
wulan17
a6b69228e8
pyrofork: fix plugins loader error on windows
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-10-08 21:56:27 +07:00
wulan17
3ee16dac4e
pyrofork: Ignore excluded plugins [2/2]
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-09-25 20:08:33 +07:00
RabbitFoRed
a403d83f7e
pyrofork: Ignore excluded plugins
currently if you specify a plugin to exclude in pyrogram
the client first imports it (caea59cc17/pyrogram/client.py (L874))
and add_handler() (caea59cc17/pyrogram/client.py (L880))
and then after this it uses remove_handler() (caea59cc17/pyrogram/client.py (L948))
this usually works well in most case,
but in a few case if the module to exclude has an error,
this is not handled and stops the program,
so need to fix the modules even if it not the target of interest (as it is in exclude=[])

Co-authored-by: wulan17 <wulan17@nusantararom.org>
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-09-13 22:41:47 +07:00
KurimuzonAkuma
4e2d553f35
Ignore PersistentTimestamp errors
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-09-07 20:52:11 +07:00
KurimuzonAkuma
ee8f11e2a0
Extract recovering gaps into a separate method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-09-07 20:52:11 +07:00
RabbitFoRed
d062b6795f
pyrofork: fix "Ignoring non-existent module error" warning when using a paths string as plugin root dir. (#94)
example code:
app = Client(...., plugins=dict(root="bot/plugins", exlude=['toremove']))

warning:
pyrogram.client - [UNLOAD] Ignoring non-existent module "bot/plugins.toremove"
2024-09-07 20:50:12 +07:00
wulan17
1d0ad21328
pyrofork: fix peer_id saved as raw id in usernames table
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-08-21 16:12:48 +07:00
Martin Müller
4c99132f3b Fix documentation URLs 2024-07-25 12:44:47 +02:00
shriMADhav U k
fb2d49efbd
Add business_user_connection_cache similar to message_cache
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-07-14 20:29:23 +07:00
KurimuzonAkuma
8584ea3599
Allow to specify a limit to message cache size
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-07-14 20:29:20 +07:00
Artem Ukolov
bb4ea00d4e
Implement non-blocking TCP connection (KurimuzonAkuma/pyrogram#71)
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-06-23 16:59:32 +07:00
wulan17
7c0481d2f0
Partial Revert "pyrofork: Handle FLOOD_PREMIUM_WAIT"
This reverts commit e414aa2812.

Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-06-15 16:26:09 +07:00
KurimuzonAkuma
a592c984fa
pyrofork: Fix recovering gaps in case of private channel
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-06-02 14:49:50 +07:00
KurimuzonAkuma
4aa4d1a74a
pyrofork: Add skip_updates parameter to Client class
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-06-02 14:49:41 +07:00
KurimuzonAkuma
ef002e0416
pyrofork: Add support for clicking web app and user profile buttons
Co-authored-by: Shrimadhav U K <SpEcHiDe@users.noreply.github.com>
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-06-02 14:38:02 +07:00
shriMADhav U k
e414aa2812
pyrofork: Handle FLOOD_PREMIUM_WAIT
Squashed commit of the following:

commit 546b603
commit 0ac858d
commit c8a9725

Ref: https://t.me/swiftgram/72
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-06-02 14:34:47 +07:00
KurimuzonAkuma
92e4ca845b
Increase watchdog interval to 15 minutes
https://core.telegram.org/api/updates#recovering-gaps
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-03-23 18:50:28 +07:00
KNF Apps
4b8fceecdc
fix(client): add FloodWait exception to media download
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-01-22 23:25:13 +07:00
wulan17
b36a46efc0
Pyrofork: Move ListenerTypes to pyrogram.enums
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-12-13 12:09:40 +07:00
wulan17
7a7225b08f
Pyrofork: Move pyromod's client bound methods to its own class
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-12-13 12:09:40 +07:00
˹ᴧɴσɴʏᴍσᴜs ꭙ˼
79e6db333f
Pyrofork: Add missing import #37 2023-12-12 20:32:36 +07:00
Cezar H
8aee144313
Added Conversation Support Based on Pyromodv2
Co-authored-by: Alisson Lauffer <alissonvitortc@gmail.com>
Co-authored-by: Yasir Aris M <git@yasirdev.my.id>
Co-authored-by: wulan17 <wulan17@nusantararom.org>
Signed-off-by: Yasir Aris M <git@yasirdev.my.id>
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-11-25 21:51:41 +07:00
wulan17
c7985b5131
Pyrofork: only load MongoStorage module when pymongo is available #32
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-11-17 22:17:20 +07:00
wulan17
db576b8a2f
Pyrofork: Storage: MongoStorage: Save fragment username(s) to sessions database
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-10-26 19:17:53 +07:00
wulan17
acb08eb990
PyroFork: Add custom storage support
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-08-18 16:34:33 +07:00
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