Commit Graph

6474 Commits

Author SHA1 Message Date
Fringg
13ebfdb5c4 fix(broadcast): stabilize mass broadcast for 100k+ users
- Add real-time progress bar with updates every 500 msgs / 5 sec
- Fix Telegram rate limiting: batch=25, delay=1.0s (~25 msg/sec)
- Add global flood_wait_until to prevent semaphore slot starvation
- Add parse_mode=HTML for web API broadcasts
- Separate error handling for FloodWait, Forbidden, BadRequest
- Convert ORM objects to scalars before long broadcast operations
- Add email recipients dataclass to prevent detached ORM state
2026-02-05 07:10:43 +03:00
Egor
e8a413c3c3 Merge pull request #2530 from BEDOLAGA-DEV/fix/cabinet-promo-discounts
fix(cabinet): apply promo group discounts to addons and tariff switch
2026-02-05 06:30:00 +03:00
Fringg
aa1d3289e1 fix(cabinet): apply promo group discounts to device/traffic purchase and tariff switch
- Add discount calculation for purchase_devices and get_device_price endpoints
- Fix traffic purchase discount to use period-aware calculation
- Apply period discount to tariff switch upgrade_cost
- Return discount info in API responses for frontend display
2026-02-05 06:26:17 +03:00
Egor
94a00ab269 Merge pull request #2529 from BEDOLAGA-DEV/fix/sqlalchemy-connection-closed
fix(broadcast): resolve SQLAlchemy connection closed errors
2026-02-05 05:49:11 +03:00
Fringg
b8682adbbf fix(broadcast): resolve SQLAlchemy connection closed errors during long broadcasts
- Extract scalar values from ORM objects before long operations
- Create fresh DB sessions for persist operations with retry mechanism
- Replace ORM User objects with telegram_id integers in broadcast loops
- Update .gitignore to exclude Python cache, IDE files, and local configs

Fixes: InterfaceError "connection is closed" and MissingGreenlet errors
during mass message broadcasts
2026-02-05 05:42:31 +03:00
Egor
cf10eeda53 Merge pull request #2528 from BEDOLAGA-DEV/main
Update docker-registry.yml
2026-02-05 05:04:32 +03:00
Egor
3cfac7e2dc Update docker-registry.yml 2026-02-05 05:04:00 +03:00
Egor
39e111c91b Merge pull request #2527 from BEDOLAGA-DEV/main
W
2026-02-05 04:55:04 +03:00
Egor
ba42517808 Update README.md 2026-02-05 00:25:48 +03:00
Egor
13846d621a Update README.md 2026-02-05 00:25:07 +03:00
Egor
e612e2f383 Merge pull request #2526 from BEDOLAGA-DEV/dev
Dev
2026-02-04 05:02:03 +03:00
Egor
1f524ccd80 Add files via upload 2026-02-04 04:51:35 +03:00
Egor
37bde2985e Add files via upload 2026-02-04 04:51:12 +03:00
Egor
c6a5e0d4be Add files via upload 2026-02-04 04:50:38 +03:00
Egor
3985053636 Add files via upload 2026-02-04 04:49:37 +03:00
Egor
4cfb1dd38f Add files via upload 2026-02-04 04:49:14 +03:00
Egor
117a417ce0 Add files via upload 2026-02-04 04:48:49 +03:00
Egor
a2e0474572 Add files via upload 2026-02-04 04:48:29 +03:00
Egor
e992891691 Add files via upload 2026-02-04 04:48:01 +03:00
Egor
57cf8687d4 Add files via upload 2026-02-04 04:47:39 +03:00
Egor
27870bbdcb Update main.py 2026-02-04 04:47:24 +03:00
Egor
21d48078ed Merge pull request #2525 from BEDOLAGA-DEV/dev
Update admin_notification_service.py
2026-02-04 03:58:14 +03:00
Egor
afb4f162d0 Update admin_notification_service.py 2026-02-04 03:55:59 +03:00
Egor
96d479780f Merge pull request #2524 from BEDOLAGA-DEV/dev
Update admin_promo_offers.py
2026-02-04 03:23:53 +03:00
Egor
2e0cd5d54c Update admin_promo_offers.py 2026-02-04 03:23:35 +03:00
Egor
c4374ce483 Merge pull request #2523 from BEDOLAGA-DEV/dev
Dev
2026-02-04 03:05:46 +03:00
Egor
bd1a0d4a4e Update wata.py 2026-02-04 03:05:22 +03:00
Egor
97f4cc0f7c Update subscription.py 2026-02-04 02:57:41 +03:00
Egor
3ebbb42096 Update inline.py 2026-02-04 02:57:12 +03:00
Egor
07ae7c2a7f Update traffic.py 2026-02-04 02:56:47 +03:00
Egor
5c3505aec9 Merge pull request #2522 from BEDOLAGA-DEV/dev
Update menu.py
2026-02-04 02:16:23 +03:00
Egor
fffa231b7e Update menu.py 2026-02-04 02:15:45 +03:00
Egor
f8db099d0f Merge pull request #2521 from BEDOLAGA-DEV/dev
Dev
2026-02-04 02:10:58 +03:00
Egor
9483517258 Add files via upload 2026-02-04 02:08:18 +03:00
Egor
0c0ab58236 Update promocode.py 2026-02-04 02:07:27 +03:00
Egor
92ec1219fa Add files via upload 2026-02-04 02:06:47 +03:00
Egor
bf72e81d55 Update promocode_service.py 2026-02-04 02:06:13 +03:00
Egor
5a008e59a2 Merge pull request #2520 from BEDOLAGA-DEV/dev
Update subscription.py
2026-02-03 23:57:22 +03:00
Egor
61b8d586d3 Update subscription.py 2026-02-03 23:56:55 +03:00
Egor
df62e2bd96 Merge pull request #2519 from BEDOLAGA-DEV/dev
Update subscription.py
2026-02-03 23:45:08 +03:00
Egor
07e8990ddb Update subscription.py 2026-02-03 23:44:15 +03:00
Egor
40fc4d7267 Merge pull request #2518 from BEDOLAGA-DEV/dev
Dev
2026-02-03 04:38:57 +03:00
Egor
5ffd3093ea Update users.py 2026-02-03 04:38:01 +03:00
Egor
01ac2c7ed0 Update admin_users.py 2026-02-03 04:37:25 +03:00
Egor
937a25aafd Update pyproject.toml 2026-02-03 04:29:27 +03:00
Egor
aeee018a53 Merge pull request #2517 from BEDOLAGA-DEV/dev
Update subscription.py
2026-02-03 04:14:40 +03:00
Egor
5cef11f32b Update subscription.py 2026-02-03 04:14:15 +03:00
Egor
467f67907f Merge pull request #2516 from BEDOLAGA-DEV/dev
Dev
2026-02-03 03:58:59 +03:00
Egor
6d38531f42 Add files via upload 2026-02-03 03:58:31 +03:00
Egor
2dd057a911 Update subscription.py 2026-02-03 03:56:27 +03:00