Commit Graph

118 Commits

Author SHA1 Message Date
Vladless ca2b671be9 fix QRCode, False DISCOUNTS and name profile 2025-03-29 21:57:36 +03:00
Vladless b2b5a57b57 ruff, button file, castomize ping and backup 2025-03-28 20:39:06 +03:00
Vladless 1cad70a72a reorganizing the menu, reissuing the key, improving statistics, and more 2025-03-28 17:44:14 +03:00
Vladless a278ad8a56 customizing the menu, resetting traffic, and creating a key from the admin panel 2025-03-27 04:39:05 +03:00
Vladless 5bbe946d64 rename sub and reorganization menu 2025-03-27 02:01:39 +03:00
Vladless 89847f6332 fix after merge 2025-03-26 16:41:43 +03:00
hteppl 6195dfd08d Optimize and fix imports 2025-03-25 17:42:53 +03:00
Oleg Kraev 9916146097 Merge branch 'feature/admin-optimize' into upstream-168 2025-03-25 17:34:46 +03:00
hteppl db8001f207 Move admin keyboards to their own packages 2025-03-25 16:28:08 +03:00
Capybara-z ca536838e6 Вынос текста
Вынесенно:
- BALANCE_MANAGEMENT_TEXT
- BALANCE_HISTORY_HEADER
- INVITE_TEXT_NON_INLINE
2025-03-25 15:10:04 +03:00
Vladless 46aae26658 add_refferal_stats 2025-03-23 19:44:11 +03:00
Vladislav Lisitsyn a2693393d3 Revert "Добавление нового middleware и рефакторинг" 2025-03-12 10:23:51 +03:00
izzzzzi 9b557f22d1 Добавление нового middleware и рефакторинг обработчиков с поддержкой target_message 2025-03-08 04:59:23 +05:00
izzzzzi 2d937d13d7 Рефакторинг и оптимизация кода: улучшение импортов, форматирования и обработки уведомлений 2025-03-07 06:16:24 +05:00
Vladless 93fc0f45c4 version 4.0 2025-03-02 15:31:47 +03:00
Vladless 972c8fbe0a add screening username 2025-03-02 12:33:52 +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 69c5a1a52f add_commands: coupon/invite 2025-02-22 19:50:53 +03:00
izzzzzi d0e3b260d0 Refactor inline referral handler and admin stats time display
- Simplified inline referral handler by removing unnecessary try-except block
- Increased cache time for inline query results
- Added Moscow timezone for admin stats update time display
2025-02-22 14:27:56 +05:00
Vladless 02dd042599 minor improvements 2025-02-21 22:36:03 +03:00
Vladless 0236b08c31 add_change_domain/bug_fixes_16 2025-02-18 02:05:14 +03:00
Vladless 469d2c9afe edit_text/lots of improvements 2025-02-16 07:17:35 +03:00
Zakhar Izmaylov 1b0a414ad6 Add inline referral query handler with customizable offers 2025-02-14 23:20:40 +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
GitHub Actions f06171b659 Auto-format code with Ruff using pyproject.toml 2025-02-08 07:46:14 +00:00
Vladless f5afec997c add traffic statistic/share refferal link and more 2025-02-07 21:38:46 +03:00
Vladless 13325fab43 ruff formatting 2025-02-06 13:53:02 +03:00
Vladless 9d4cd6ccb5 Major bug fixes 2025-02-06 02:03:12 +03:00
Vladless ce20961fb2 minor fixes 2025-02-02 19:00:22 +03:00
Vladless 1b17f0fd71 change_location/CASHBACK/logging/bug_fixes 2025-02-02 02:11:57 +03:00
Zakhar Izmaylov c8e907edd1 Standardize import order in handler modules
- Reorder imports in multiple handler files to follow a consistent pattern
- Move type-specific imports like Message and CallbackQuery to be more organized
- Ensure clean and uniform import statements across admin and handler modules
2025-01-31 03:01:46 +03:00
Zakhar Izmaylov 6a98f4fb43 Update type hints in admin and handler modules
- Replace types.Message and types.CallbackQuery with explicit Message and CallbackQuery imports
- Improve type annotations in multiple handler files
- Ensure consistent type hinting across admin and handler modules
2025-01-31 02:59:57 +03:00
Zakhar Izmaylov f83a3a15a9 Merge branch 'main' of https://github.com/izzzzzi/Solo_bot 2025-01-23 11:40:25 +03:00
Zakhar Izmaylov 311c48edcd Refactor code to utilize aiofiles for asynchronous file handling across multiple modules. Added a new function to remove blocked users from the database and updated user blocking/unblocking logic to use this new function. Improved database interaction in admin panel handlers by passing session objects instead of creating new connections. This enhances performance and maintains consistency in file operations. 2025-01-23 06:34:45 +03:00
Zakhar Izmaylov 8667ae3a23 Refactor file handling to use aiofiles for asynchronous operations
- Replaced synchronous file reading with asynchronous file handling using aiofiles in multiple handlers and the backup module.
- Improved performance and responsiveness when sending images and backups by utilizing async file operations.
- Ensured consistent use of BufferedInputFile across all relevant functions for better code maintainability.
2025-01-21 12:03:56 +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
Vladless 0391bd90e9 FlowPayRenew/fixNotify/pay_history/custom/statistic/minorFixes 2025-01-14 04:06:55 +03:00
Vladless 2e97cbb5ee fix_profile 2025-01-13 02:03:09 +03:00
Zakhar Izmaylov 921cade931 Add balance_history 2025-01-11 18:03:59 +03:00
Zakhar Izmaylov a018a42f2c Add antiflood and lint 2025-01-10 14:51:13 +03:00
Vladless a45a00e55b fiatCryptobot/flowPayments/Buttons/fixNotify/BanOfUsers/fixTrial and more 2025-01-09 03:16:53 +03:00
Vladless 365e1f6d61 fiatCryptobot/flowPayments/Buttons/fixNotify/BanOfUsers/fixTrial and more 2025-01-09 02:40:39 +03:00
Vladless d2fc1eb256 TV/Send_message/custom_refferal_level/buttons 2024-12-28 22:22:56 +03:00
Vladless c1728d111b add support for business/optimization 2024-12-20 23:29:27 +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 ba11c8fe0e rm wrench 2024-12-11 15:41:45 +03:00
Vladislav Lisitsyn 6aa6d9132a Merge pull request #113 from Vladless/hteppl-optimize-sources
Hteppl optimize sources
2024-12-10 04:14:24 +02:00