Zakhar Izmaylov
2d638b0c82
Refactor key management functions to improve database interactions by consolidating key deletion logic into a single function. Introduce timezone-aware expiry date calculations for keys and enhance key retrieval processes across various handlers. Update the start command to utilize a dedicated function for adding connections, ensuring cleaner code and better session management.
2025-01-23 07:49:21 +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
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
hteppl
fe70664a23
Fix CONNECT_TV_TEXT: add disable_web_page_preview=True
2024-12-29 02:05:47 +03:00
Vladless
d2fc1eb256
TV/Send_message/custom_refferal_level/buttons
2024-12-28 22:22:56 +03:00
Vladless
e60797c1e0
gift_code/buttons/commands
2024-12-23 01:14:28 +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
7d4d7a37cb
preview pc_instruction disable
2024-12-06 01:42:14 +03:00
Vladless
f4f1a5596c
plan on create new key after trial
2024-12-04 01:28:28 +03:00
Vladless
efdb9a11dc
add button for MacOS
2024-12-04 00:06:21 +03:00
Zakhar Izmaylov
6b712de25c
Fix srssion
2024-11-24 11:26:54 +03:00
Zakhar Izmaylov
2f799f0bad
Update id
2024-11-24 11:07:52 +03:00
Zakhar Izmaylov
95192032de
Fix typing
2024-11-24 01:19:00 +03:00
Zakhar Izmaylov
30efc7a1c7
Refactoring
2024-11-24 01:18:42 +03:00
Zakhar Izmaylov
d1b7a01b4f
Update config
2024-11-22 21:24:55 +03:00
Zakhar Izmaylov
4fbffd2c88
Update instructions
2024-11-21 20:49:58 +03:00
Vladless
28b344b9c4
Fixed unexpected behavior of the device selection button
2024-11-18 14:57:12 +03:00
Vladless
e9237e5f1c
Fixed unexpected behavior of the device selection button
2024-11-18 14:56:41 +03:00
Zakhar Izmaylov
5ece667357
Refactoring and fix
2024-11-17 13:33:17 +03:00
Zakhar Izmaylov
fb28a0881c
Add dry logging
2024-11-16 18:01:28 +03:00
Vladless
c296243032
fix logging
2024-11-15 23:15:19 +03:00
Vladless
318efc7cf7
pc instructions and button
2024-11-15 21:49:27 +03:00
Zakhar Izmaylov
4336826986
Add dev mode and fix menu and fix stars and cryptobot
2024-11-15 11:40:25 +03:00
Zakhar Izmaylov
e524e439b1
Add make and config for formatting
2024-11-10 11:02:15 +03:00
Vladless
0697873742
bug and fix
2024-11-10 02:25:36 +03:00
Zakhar Izmaylov
c68a5794af
Refactoring and fix
2024-11-09 10:36:16 +03:00
Vladless
53a56e00cb
v3. Полноценные подписки
2024-11-07 07:53:29 +03:00
Vladless
1c19bf6205
Полная реструктуризация. Тексты все в texts.py
2024-10-27 03:16:58 +03:00