Commit Graph

73 Commits

Author SHA1 Message Date
5de0a1a053 feat(telegram_bot): Auto-reload config after account import to sync memory state
- Add automatic config reload after importing accounts to team.json
- Prevent save_team_json() from overwriting newly imported data by syncing memory state
- Update user feedback message to indicate config is auto-refreshed instead of requiring manual /reload command
- Improve user experience by eliminating extra step after account import
2026-01-18 17:45:21 +08:00
95fa705768 feat: Implement result deduplication by email and enhance summary reporting to detail only failed accounts. 2026-01-18 06:59:35 +08:00
49cb2430c8 Update Telegram bot implementation. 2026-01-18 06:44:58 +08:00
930cd203ee feat: Update Telegram bot implementation and its main execution script. 2026-01-18 06:39:10 +08:00
b75d12b5aa feat: Add authorized field to old format account parsing based on accessToken presence. 2026-01-18 06:27:23 +08:00
4ca15d9f01 Update telegram bot implementation. 2026-01-18 06:21:18 +08:00
94145f7dd0 update 2026-01-18 06:04:06 +08:00
f919e71de1 refactor: update the main execution logic in run.py 2026-01-18 05:59:56 +08:00
83a9e38aa7 Update core logic, Telegram bot, browser automation, and email services. 2026-01-18 05:57:52 +08:00
7e92e12c79 update 2026-01-18 05:38:14 +08:00
e510c568b4 update 2026-01-18 04:17:42 +08:00
07816afd8d update script 2026-01-18 04:02:57 +08:00
a4ca3ec093 update 2026-01-18 03:45:02 +08:00
0d19a9a96d refactor(config, telegram_bot): Simplify GPTMail API key configuration and remove redundant Telegram enabled flag
- Simplify GPTMail API key initialization logic by removing separate api_key and api_keys variables and consolidating into single line with fallback to ["gpt-test"]
- Update config.toml.example to use api_keys list format instead of deprecated api_key single value
- Remove TELEGRAM_ENABLED configuration variable and related check from telegram_bot.py
- Simplify Telegram Bot startup validation to only check for bot_token and admin_chat_ids
- Update default auth_provider from "cpa" to "s2a" in config.toml.example
- Improve documentation comments in config.toml.example for GPTMail domains and CRS service
- Localize error messages in telegram_bot.py to Chinese for consistency
- Streamline configuration by removing unnecessary intermediate variables and checks
2026-01-18 02:14:08 +08:00
c39a01c4c0 update 2026-01-18 01:57:11 +08:00
ad120687b3 feat(logger, telegram_bot): Add real-time Telegram logging capability
- Add TelegramLogHandler class to stream logs to Telegram in real-time
- Implement enable_telegram_logging() method to activate Telegram log streaming
- Implement disable_telegram_logging() method to deactivate Telegram log streaming
- Implement is_telegram_logging_enabled() method to check logging status
- Add /logs_live command to enable real-time log push notifications
- Add /logs_stop command to disable real-time log push notifications
- Update help text to document new real-time logging commands
- Remove obsolete team.json.example file
- Enables administrators to monitor system logs in real-time through Telegram bot
2026-01-18 01:16:20 +08:00
b902922d22 feat(config, email_service, telegram_bot): Add dynamic GPTMail API key management and config reload capability
- Add reload_config() function to dynamically reload config.toml and team.json without restart
- Implement GPTMail API key management with support for multiple keys (api_keys list)
- Add functions to manage GPTMail keys: get_gptmail_keys(), add_gptmail_key(), remove_gptmail_key()
- Add key rotation strategies: get_next_gptmail_key() (round-robin) and get_random_gptmail_key()
- Add gptmail_keys.json file support for dynamic key management
- Fix config parsing to handle include_team_owners and proxy settings in multiple locations
- Update email_service.py to use key rotation for GPTMail API calls
- Update telegram_bot.py to support dynamic key management
- Add install_service.sh script for service installation
- Update config.toml.example with new api_keys configuration option
- Improve configuration flexibility by supporting both old (api_key) and new (api_keys) formats
2026-01-17 05:52:05 +08:00
64707768f8 5 2026-01-16 00:32:23 +08:00
7e8c3784c1 feat(bot_notifier, browser_automation): Add debug screenshot capability and improve browser automation
- Add `_send_photo_to_all()` async method to send photos to all admin chat IDs
- Add `send_screenshot()` async method for sending debug screenshots via Telegram
- Add `send_screenshot_sync()` synchronous wrapper for non-async code integration
- Add `save_debug_screenshot()` function to capture and send screenshots when DEBUG_SCREENSHOT=true
- Add debug screenshot directory creation and timestamp-based file naming
- Improve browser initialization with automation detection bypass and realistic User-Agent
- Add `--disable-blink-features=AutomationControlled` flag to hide automation characteristics
- Set Mozilla/5.0 User-Agent string to mimic real Chrome browser
- Enhance OpenAI account registration flow with better error handling and debugging
- Add screenshot capture on page load failures and popup abnormalities
- Improve popup detection with additional CSS and text selectors for better reliability
- Increase timeout values for popup loading and form detection (1-3s to 2-5s)
- Add multiple fallback selectors for login form detection (email input fields, welcome text)
- Improve signup button retry logic with longer wait times and additional selector options
- Add screenshot capture on critical failures (popup retry failed, signup button not found)
2026-01-16 00:07:40 +08:00
99599134c0 4 2026-01-15 23:56:00 +08:00
51d03038e0 33 2026-01-15 23:53:33 +08:00
b1953b5d95 2 2026-01-15 23:39:41 +08:00
06f906abc7 first 2026-01-15 23:02:16 +08:00