Vladless
5571652a9a
ORM update and lots of improvements
2025-05-24 19:30:23 +03:00
Vladless
18fbb710dd
ruff formatting
2025-05-09 01:34:11 +03:00
Vladislav Lisitsyn
ab0a128375
Merge branch 'main' into dev
2025-05-01 20:44:10 +03:00
Capybara-z
787f8e638f
fix name month
...
- Отображение месяцев на русском.
2025-05-01 19:09:49 +03:00
Vladless
422ce15dca
ruff formatting
2025-04-24 23:20:18 +03:00
Vladless
0f817920da
refactoring/utm/fix minor bugs
2025-04-21 21:53:13 +03:00
Vladless
cc3ce3a8bb
refactoring/notify_optimization/least_loaded_cluster for key_limit/rm args
2025-04-21 00:22:14 +03:00
Capybara-z
26411ef982
fix coupons/formatted day
2025-04-19 17:24:05 +03:00
Vladless
e0212866b4
remnawave in country_mode/save shortid/bug fixes
2025-04-16 22:50:19 +03:00
Capybara-z
c794f3dcda
Adding time declination
...
- Добавил новые склонения
2025-04-15 01:26:17 +03:00
Vladless
7a27c942d8
add support for RemnaWave
2025-04-10 14:51:01 +03:00
Capybara-z
252c072cec
Добавление формулы склонения.
...
- Добалвение формулы склонения
- Адаптация клонение дней к новой формуле.
2025-04-03 22:17:19 +03:00
Capybara-z
b836bcdc70
Функция склонения дней.
...
- Добавлена функция склонения дней.
2025-04-03 10:26:47 +03:00
Vladless
b2b5a57b57
ruff, button file, castomize ping and backup
2025-03-28 20:39:06 +03:00
hteppl
4007d14c64
Upstream
2025-03-26 02:05:24 +03:00
izzzzzi
076da78981
Исправление сравнения tg_id в обработчике подписок. Приведение типов к int для корректной проверки идентификаторов.
2025-03-25 22:00:54 +05:00
hteppl
6195dfd08d
Optimize and fix imports
2025-03-25 17:42:53 +03:00
Vladless
30738a6a00
frozen_subs/restore_all_trial and more
2025-03-12 18:12:29 +03:00
izzzzzi
2d937d13d7
Рефакторинг и оптимизация кода: улучшение импортов, форматирования и обработки уведомлений
2025-03-07 06:16:24 +05:00
Vladless
b486f6b186
minor bug fixes
2025-02-25 22:06:44 +03:00
Vladless
5ccdc7f68b
refactoring and minor improvements
2025-02-25 19:56:42 +03:00
izzzzzi
0657136ae5
Рефакторинг и оптимизация импортов в модулях проекта
...
- Упорядочивание и группировка импортов в соответствии с PEP 8
- Удаление неиспользуемых импортов
- Перемещение локальных импортов в начало списка
- Добавление пустых строк для улучшения читаемости
- Систематизация порядка импортов в различных модулях проекта
2025-02-25 04:14:58 +05:00
Vladless
02dd042599
minor improvements
2025-02-21 22:36:03 +03:00
Capybara-z
c5301c4d77
Конвертатор байтов
...
- Добавлен конвертатор байтов.
2025-02-20 20:07:58 +03:00
Vladless
0236b08c31
add_change_domain/bug_fixes_16
2025-02-18 02:05:14 +03:00
Boris Kovalskii
c8d7cdba74
small fix for show error
2025-02-16 17:27:52 +10:00
Vladless
469d2c9afe
edit_text/lots of improvements
2025-02-16 07:17:35 +03:00
Zakhar Izmaylov
fa8c644520
Add client toggle functionality for 3x-ui servers
2025-02-14 23:06:45 +03:00
Vladless
0da8771a52
NOTIFICATIONS 2.0/bug fixes and improvments
2025-02-14 00:30:06 +03:00
Vladless
13325fab43
ruff formatting
2025-02-06 13:53:02 +03:00
Vladless
1b17f0fd71
change_location/CASHBACK/logging/bug_fixes
2025-02-02 02:11:57 +03:00
Zakhar Izmaylov
c9afe25c52
Remove check_online_users function and minor import reorganization
...
- Removed unused check_online_users function from notifications handler
- Reorganized imports in notifications.py and utils.py
- Fixed TimeoutError import in subscriptions.py
2025-01-31 00:08:31 +03:00
GitHub Actions
1fad6cae3c
Auto-format code with Ruff using pyproject.toml
2025-01-30 20:36:20 +00:00
Zakhar Izmaylov
a484498d7e
Merge branch 'main' of https://github.com/izzzzzi/Solo_bot
2025-01-30 23:35:50 +03:00
Zakhar Izmaylov
83870a2022
Refactor and improve security with cryptographically secure random generation
...
- Replace `random` module with `secrets` for cryptographically secure random choices
- Update type hints for async API methods in client.py
- Optimize file reading with aiofiles in multiple handlers
- Improve error handling and logging in various modules
- Update Python target version to 3.12 in pyproject.toml
- Remove unused imports and improve code quality
2025-01-30 22:35:09 +03:00
Capybara-z
65bc868346
Расчет времени для исекших уведомлений для DELETE_KEYS_DELAY
...
Добавлена format_time_until_deletion для расчета времени при уведомлении когда подписка истекала.
2025-01-30 21:50:29 +03:00
Zakhar Izmaylov
5be5cd33f7
Implement new database functions for server and coupon management. Added check_server_name_by_cluster, get_coupon_details, get_referral_by_referred_id, and get_all_keys to enhance data retrieval capabilities. Updated handlers to utilize these new functions, improving code clarity and maintainability. Refactored existing database calls in start.py, utils.py, and keys.py for consistency and better session management.
2025-01-23 11:58:35 +03:00
Zakhar Izmaylov
73a365eeb6
Refactor server management and database interactions. Renamed get_servers_from_db to get_servers for clarity and updated related handlers to utilize session management. Refactored add_server_to_db to create_server for consistency. Improved code readability and maintainability across coupon and notification handlers by streamlining database calls and enhancing error handling.
2025-01-23 11:36:15 +03:00
Zakhar Izmaylov
acb73101c0
Refactor and clean up code formatting across multiple files
...
- Consolidated and simplified code formatting by removing unnecessary line breaks and improving readability in various functions.
- Updated the handling of backup file sending in backup.py for better clarity.
- Streamlined error handling and logging messages in several handlers to enhance consistency.
- Adjusted the Makefile to exclude specific files during Ruff checks and formatting.
- Made minor adjustments to function signatures and parameter handling for improved clarity and consistency.
This commit enhances code maintainability and readability without altering functionality.
2025-01-21 08:57:12 +03:00
Zakhar Izmaylov
4b2e28d15d
Delete parse_mode
2025-01-15 02:15:21 +03:00
Vladless
0391bd90e9
FlowPayRenew/fixNotify/pay_history/custom/statistic/minorFixes
2025-01-14 04:06:55 +03:00
Zakhar Izmaylov
a018a42f2c
Add antiflood and lint
2025-01-10 14:51:13 +03:00
Vladless
365e1f6d61
fiatCryptobot/flowPayments/Buttons/fixNotify/BanOfUsers/fixTrial and more
2025-01-09 02:40:39 +03:00
Zakhar Izmaylov
636912070d
Fix float get_usd_rate
2025-01-05 23:46:45 +03:00
Zakhar Izmaylov
812fa87f26
Add get_usd_rate
2025-01-05 23:43:04 +03:00
Vladless
97091f4875
fix_refferal/GIFTS/redirect/name_sub and more
2024-12-19 20:37:41 +03:00
Zakhar Izmaylov
142c1c15e7
Migrate to ruff
2024-12-13 12:09:20 +03:00
Vladless
f0b2c40a8a
Revert "Merge pull request #112 from Vladless/hteppl-optimize-sources"
...
This reverts commit fa681fac92 , reversing
changes made to b31c9d2e10 .
2024-12-10 03:53:07 +03:00
hteppl
9233fab758
Move utils.py to the utils folder
2024-12-08 05:02:41 +03:00
hteppl
7a11c51e1f
Move util-related files into separated folder + refactor imports
2024-12-08 04:57:20 +03:00