Commit Graph

1429 Commits

Author SHA1 Message Date
08f90a3246 Implement robust scheduler for traffic monitoring and backups
- Replace cron jobs with a systemd service for better reliability
- Add file locking mechanism to prevent conflicts on users.json
- Schedule traffic status updates every minute with proper error handling
- Maintain 6-hour backup schedule with independent lock management
- Add comprehensive logging for easier troubleshooting

This change resolves issues where system updates or other programs
would cause conflicts with the traffic monitoring process accessing
the users.json file simultaneously.
2025-05-15 21:18:23 +03:30
70b16efedf Update CODEOWNERS 2025-05-14 21:58:48 +03:30
68d16155b6 Merge pull request #168 from ReturnFI/beta
feat(telegram): Enhance add user to show Normal-SUB link and QR
2025-05-14 21:58:21 +03:30
0ac101c43b Fix : Restart normal-sub service after change path 2025-05-14 21:57:00 +03:30
dcb41ebab1 Delete python-app.yml 2025-05-14 21:54:27 +03:30
4943ab2e7f Create python-app.yml 2025-05-14 21:50:47 +03:30
a1ae44549b useless 2025-05-14 21:47:51 +03:30
81ae08ae1d Merge pull request #163 from ReturnFI/dependabot/pip/python-dotenv-1.1.0
chore(deps): Bump python-dotenv from 1.0.1 to 1.1.0
2025-05-14 21:47:00 +03:30
0b89355ff0 Merge pull request #164 from ReturnFI/dependabot/pip/anyio-4.9.0
chore(deps): Bump anyio from 4.8.0 to 4.9.0
2025-05-14 21:46:47 +03:30
2a9084a15e Merge pull request #165 from ReturnFI/dependabot/pip/frozenlist-1.6.0
chore(deps): Bump frozenlist from 1.5.0 to 1.6.0
2025-05-14 21:46:32 +03:30
b0361056ec Merge pull request #166 from ReturnFI/dependabot/pip/pillow-11.2.1
chore(deps): Bump pillow from 11.1.0 to 11.2.1
2025-05-14 21:46:19 +03:30
4d755d4fa1 Update dependabot.yml 2025-05-14 21:44:44 +03:30
f6383c5b18 Update dependabot_tests.yml 2025-05-14 21:43:07 +03:30
8ad93aea5d Move to workflows 2025-05-14 21:42:32 +03:30
8acf09a80d chore(deps): Bump pillow from 11.1.0 to 11.2.1
Bumps [pillow](https://github.com/python-pillow/Pillow) from 11.1.0 to 11.2.1.
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst)
- [Commits](https://github.com/python-pillow/Pillow/compare/11.1.0...11.2.1)

---
updated-dependencies:
- dependency-name: pillow
  dependency-version: 11.2.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-14 18:08:58 +00:00
638f168de3 chore(deps): Bump frozenlist from 1.5.0 to 1.6.0
Bumps [frozenlist](https://github.com/aio-libs/frozenlist) from 1.5.0 to 1.6.0.
- [Release notes](https://github.com/aio-libs/frozenlist/releases)
- [Changelog](https://github.com/aio-libs/frozenlist/blob/master/CHANGES.rst)
- [Commits](https://github.com/aio-libs/frozenlist/compare/v1.5.0...v1.6.0)

---
updated-dependencies:
- dependency-name: frozenlist
  dependency-version: 1.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-14 18:08:52 +00:00
e58bc4f99a chore(deps): Bump anyio from 4.8.0 to 4.9.0
Bumps [anyio](https://github.com/agronholm/anyio) from 4.8.0 to 4.9.0.
- [Release notes](https://github.com/agronholm/anyio/releases)
- [Changelog](https://github.com/agronholm/anyio/blob/master/docs/versionhistory.rst)
- [Commits](https://github.com/agronholm/anyio/compare/4.8.0...4.9.0)

---
updated-dependencies:
- dependency-name: anyio
  dependency-version: 4.9.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-14 18:08:47 +00:00
d5d59750d2 chore(deps): Bump python-dotenv from 1.0.1 to 1.1.0
Bumps [python-dotenv](https://github.com/theskumar/python-dotenv) from 1.0.1 to 1.1.0.
- [Release notes](https://github.com/theskumar/python-dotenv/releases)
- [Changelog](https://github.com/theskumar/python-dotenv/blob/main/CHANGELOG.md)
- [Commits](https://github.com/theskumar/python-dotenv/compare/v1.0.1...v1.1.0)

---
updated-dependencies:
- dependency-name: python-dotenv
  dependency-version: 1.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-14 18:08:44 +00:00
b3d2bff4d6 Update dependabot.yml 2025-05-14 21:37:51 +03:30
b46d956205 Create dependabot_tests.yml 2025-05-14 21:36:28 +03:30
af785e0c0d Update requirements 2025-05-14 21:22:44 +03:30
a94531978c Merge pull request #159 from ReturnFI/dependabot/pip/certifi-2025.4.26
chore(deps): Bump certifi from 2024.12.14 to 2025.4.26
2025-05-14 21:18:27 +03:30
9fd1317b6e chore(deps): Bump certifi from 2024.12.14 to 2025.4.26
Bumps [certifi](https://github.com/certifi/python-certifi) from 2024.12.14 to 2025.4.26.
- [Commits](https://github.com/certifi/python-certifi/compare/2024.12.14...2025.04.26)

---
updated-dependencies:
- dependency-name: certifi
  dependency-version: 2025.4.26
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-14 17:48:18 +00:00
2291b03832 Merge pull request #160 from ReturnFI/dependabot/pip/multidict-6.4.3
chore(deps): Bump multidict from 6.1.0 to 6.4.3
2025-05-14 21:17:55 +03:30
bf26ae22b4 Merge pull request #161 from ReturnFI/dependabot/pip/pydantic-2.11.4
chore(deps): Bump pydantic from 2.10.5 to 2.11.4
2025-05-14 21:17:44 +03:30
1347b378a4 Merge pull request #162 from ReturnFI/dependabot/pip/typing-extensions-4.13.2
chore(deps): Bump typing-extensions from 4.12.2 to 4.13.2
2025-05-14 21:17:33 +03:30
04b821c40b Merge pull request #158 from ReturnFI/dependabot/pip/attrs-25.3.0
chore(deps): Bump attrs from 24.3.0 to 25.3.0
2025-05-14 21:17:16 +03:30
04756655ec chore(deps): Bump typing-extensions from 4.12.2 to 4.13.2
Bumps [typing-extensions](https://github.com/python/typing_extensions) from 4.12.2 to 4.13.2.
- [Release notes](https://github.com/python/typing_extensions/releases)
- [Changelog](https://github.com/python/typing_extensions/blob/main/CHANGELOG.md)
- [Commits](https://github.com/python/typing_extensions/compare/4.12.2...4.13.2)

---
updated-dependencies:
- dependency-name: typing-extensions
  dependency-version: 4.13.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-14 17:46:21 +00:00
7fc29fbc27 chore(deps): Bump pydantic from 2.10.5 to 2.11.4
Bumps [pydantic](https://github.com/pydantic/pydantic) from 2.10.5 to 2.11.4.
- [Release notes](https://github.com/pydantic/pydantic/releases)
- [Changelog](https://github.com/pydantic/pydantic/blob/main/HISTORY.md)
- [Commits](https://github.com/pydantic/pydantic/compare/v2.10.5...v2.11.4)

---
updated-dependencies:
- dependency-name: pydantic
  dependency-version: 2.11.4
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-14 17:46:19 +00:00
324a3259ac chore(deps): Bump multidict from 6.1.0 to 6.4.3
Bumps [multidict](https://github.com/aio-libs/multidict) from 6.1.0 to 6.4.3.
- [Release notes](https://github.com/aio-libs/multidict/releases)
- [Changelog](https://github.com/aio-libs/multidict/blob/master/CHANGES.rst)
- [Commits](https://github.com/aio-libs/multidict/compare/v6.1.0...v6.4.3)

---
updated-dependencies:
- dependency-name: multidict
  dependency-version: 6.4.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-14 17:46:16 +00:00
6993b1fa4a chore(deps): Bump attrs from 24.3.0 to 25.3.0
Bumps [attrs](https://github.com/sponsors/hynek) from 24.3.0 to 25.3.0.
- [Commits](https://github.com/sponsors/hynek/commits)

---
updated-dependencies:
- dependency-name: attrs
  dependency-version: 25.3.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-14 17:46:06 +00:00
cb29fc95bb Update dependabot.yml 2025-05-14 21:15:18 +03:30
fa64f0e07b Merge pull request #157 from ReturnFI/dependabot/pip/psutil-7.0.0
chore(deps): Bump psutil from 6.1.1 to 7.0.0
2025-05-14 21:12:03 +03:30
fc0d3e7778 chore(deps): Bump psutil from 6.1.1 to 7.0.0
Bumps [psutil](https://github.com/giampaolo/psutil) from 6.1.1 to 7.0.0.
- [Changelog](https://github.com/giampaolo/psutil/blob/master/HISTORY.rst)
- [Commits](https://github.com/giampaolo/psutil/compare/release-6.1.1...release-7.0.0)

---
updated-dependencies:
- dependency-name: psutil
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-14 17:41:57 +00:00
e736ac4436 Merge pull request #156 from ReturnFI/dependabot/pip/pydantic-settings-2.9.1
chore(deps): Bump pydantic-settings from 2.7.1 to 2.9.1
2025-05-14 21:11:23 +03:30
c4d19ae774 Merge pull request #155 from ReturnFI/dependabot/pip/certbot-4.0.0
chore(deps): Bump certbot from 3.1.0 to 4.0.0
2025-05-14 21:11:13 +03:30
f5cb64392c Merge pull request #154 from ReturnFI/dependabot/pip/pydantic-core-2.34.1
chore(deps): Bump pydantic-core from 2.27.2 to 2.34.1
2025-05-14 21:11:02 +03:30
382c78adb0 Merge pull request #153 from ReturnFI/dependabot/pip/pytelegrambotapi-4.27.0
chore(deps): Bump pytelegrambotapi from 4.26.0 to 4.27.0
2025-05-14 21:10:41 +03:30
23a0158651 chore(deps): Bump pydantic-settings from 2.7.1 to 2.9.1
Bumps [pydantic-settings](https://github.com/pydantic/pydantic-settings) from 2.7.1 to 2.9.1.
- [Release notes](https://github.com/pydantic/pydantic-settings/releases)
- [Commits](https://github.com/pydantic/pydantic-settings/compare/v2.7.1...v2.9.1)

---
updated-dependencies:
- dependency-name: pydantic-settings
  dependency-version: 2.9.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-14 13:53:02 +00:00
da81f771aa chore(deps): Bump certbot from 3.1.0 to 4.0.0
Bumps [certbot](https://github.com/certbot/certbot) from 3.1.0 to 4.0.0.
- [Release notes](https://github.com/certbot/certbot/releases)
- [Commits](https://github.com/certbot/certbot/compare/v3.1.0...v4.0.0)

---
updated-dependencies:
- dependency-name: certbot
  dependency-version: 4.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-14 13:52:59 +00:00
ce48d26afb chore(deps): Bump pydantic-core from 2.27.2 to 2.34.1
Bumps [pydantic-core](https://github.com/pydantic/pydantic-core) from 2.27.2 to 2.34.1.
- [Release notes](https://github.com/pydantic/pydantic-core/releases)
- [Commits](https://github.com/pydantic/pydantic-core/compare/v2.27.2...v2.34.1)

---
updated-dependencies:
- dependency-name: pydantic-core
  dependency-version: 2.34.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-14 13:52:54 +00:00
ce04867344 chore(deps): Bump pytelegrambotapi from 4.26.0 to 4.27.0
Bumps [pytelegrambotapi](https://github.com/eternnoir/pyTelegramBotAPI) from 4.26.0 to 4.27.0.
- [Release notes](https://github.com/eternnoir/pyTelegramBotAPI/releases)
- [Commits](https://github.com/eternnoir/pyTelegramBotAPI/compare/4.26.0...4.27.0)

---
updated-dependencies:
- dependency-name: pytelegrambotapi
  dependency-version: 4.27.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-14 13:52:51 +00:00
b6fa491920 feat: Add CODEOWNERS file 2025-05-14 11:09:16 +03:30
80c519a66f feat(telegram): Enhance add user to show Normal-SUB link and QR
Modifies the Telegram bot's 'Add User' functionality.
After adding a user, the bot now attempts to retrieve and display
the Normal-SUB subscription link and its QR code if available.
If Normal-SUB is not found, it falls back to showing the direct
Hysteria2 IPv4 URI and QR code. The direct URI is also provided as a
fallback if Normal-SUB is shown. 
Usernames are quoted in CLI calls
for robustness. Improved input validation for username, traffic,
and expiration days.
2025-05-14 00:34:23 +03:30
4090b8cb03 Merge pull request #150 from ReturnFI/dependabot/pip/aiohappyeyeballs-2.6.1
chore(deps): Bump aiohappyeyeballs from 2.4.4 to 2.6.1
2025-05-13 23:55:17 +03:30
315a9bc6c0 chore(deps): Bump aiohappyeyeballs from 2.4.4 to 2.6.1
Bumps [aiohappyeyeballs](https://github.com/aio-libs/aiohappyeyeballs) from 2.4.4 to 2.6.1.
- [Release notes](https://github.com/aio-libs/aiohappyeyeballs/releases)
- [Changelog](https://github.com/aio-libs/aiohappyeyeballs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aio-libs/aiohappyeyeballs/compare/v2.4.4...v2.6.1)

---
updated-dependencies:
- dependency-name: aiohappyeyeballs
  dependency-version: 2.6.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-13 20:24:22 +00:00
32e7168e4f Merge pull request #152 from ReturnFI/dependabot/pip/qrcode-8.2
chore(deps): Bump qrcode from 8.0 to 8.2
2025-05-13 23:54:04 +03:30
43d413a3ed Merge pull request #151 from ReturnFI/dependabot/pip/propcache-0.3.1
chore(deps): Bump propcache from 0.2.1 to 0.3.1
2025-05-13 23:53:53 +03:30
56c36dabaa Merge pull request #149 from ReturnFI/dependabot/pip/async-timeout-5.0.1
chore(deps): Bump async-timeout from 4.0.3 to 5.0.1
2025-05-13 23:53:28 +03:30
8f22c0b7eb Merge pull request #148 from ReturnFI/dependabot/pip/aiohttp-3.11.18
chore(deps): Bump aiohttp from 3.11.11 to 3.11.18
2025-05-13 23:53:17 +03:30