editormate 1.0.2 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.js +113 -12
- package/dist/adapters/ide/ide_adapters.js +147 -7
- package/dist/adapters/messaging/discord_adapter.js +606 -7
- package/dist/adapters/messaging/discord_menu.js +125 -7
- package/dist/adapters/messaging/matrix_adapter.js +98 -7
- package/dist/adapters/messaging/slack_adapter.js +420 -7
- package/dist/adapters/messaging/telegram_adapter.d.ts.map +1 -1
- package/dist/adapters/messaging/telegram_adapter.js +634 -7
- package/dist/adapters/messaging/telegram_adapter.js.map +1 -1
- package/dist/adapters/messaging/telegram_client.js +383 -7
- package/dist/adapters/messaging/telegram_keyboards.js +219 -7
- package/dist/adapters/messaging/whatsapp_adapter.js +153 -7
- package/dist/adapters/messaging/whatsapp_baileys.js +880 -7
- package/dist/core/blocking_prompt_bridge.js +255 -7
- package/dist/core/chat_switchboard.js +243 -7
- package/dist/core/companion_daemon.d.ts +4 -0
- package/dist/core/companion_daemon.d.ts.map +1 -1
- package/dist/core/companion_daemon.js +1191 -7
- package/dist/core/companion_daemon.js.map +1 -1
- package/dist/core/email_reporter.js +510 -7
- package/dist/core/licensing.d.ts.map +1 -1
- package/dist/core/licensing.js +335 -7
- package/dist/core/licensing.js.map +1 -1
- package/dist/core/media_handler.js +449 -7
- package/dist/core/os_keychain.js +155 -7
- package/dist/core/outbound_dispatcher.js +80 -7
- package/dist/core/pdf_generator.js +226 -7
- package/dist/core/process_checker.js +47 -7
- package/dist/core/prompt_sanitizer.js +93 -7
- package/dist/core/security.js +385 -7
- package/dist/core/session_manager.d.ts.map +1 -1
- package/dist/core/session_manager.js +1241 -7
- package/dist/core/session_manager.js.map +1 -1
- package/dist/core/standalone_dashboard/client_script.js +479 -7
- package/dist/core/standalone_dashboard/components/header.js +23 -7
- package/dist/core/standalone_dashboard/components/modals.js +11 -7
- package/dist/core/standalone_dashboard/components/remote_deck.js +228 -7
- package/dist/core/standalone_dashboard/components/settings_deck.js +205 -7
- package/dist/core/standalone_dashboard/index.js +49 -7
- package/dist/core/standalone_dashboard/styles.js +546 -7
- package/dist/core/standalone_dashboard.js +4 -7
- package/dist/core/telemetry.js +225 -7
- package/dist/core/transcript_watcher.d.ts.map +1 -1
- package/dist/core/transcript_watcher.js +257 -7
- package/dist/core/transcript_watcher.js.map +1 -1
- package/dist/core/transcription_refiner.js +203 -7
- package/dist/core/tui_dashboard.js +454 -7
- package/dist/index.js +13 -7
- package/dist/types.js +12 -7
- package/extension/editormate-1.0.7.vsix +0 -0
- package/extension/editormate-latest.vsix +0 -0
- package/package.json +4 -3
- package/extension/.vscodeignore +0 -4
- package/extension/LICENSE.md +0 -31
- package/extension/README.md +0 -55
- package/extension/assets/icon.png +0 -0
- package/extension/assets/icon.svg +0 -16
- package/extension/bin/cli.js +0 -264
- package/extension/bin/package.json +0 -3
- package/extension/daemon/adapters/ide/ide_adapters.d.ts +0 -45
- package/extension/daemon/adapters/ide/ide_adapters.d.ts.map +0 -1
- package/extension/daemon/adapters/ide/ide_adapters.js +0 -9
- package/extension/daemon/adapters/ide/ide_adapters.js.map +0 -1
- package/extension/daemon/adapters/messaging/discord_adapter.d.ts +0 -56
- package/extension/daemon/adapters/messaging/discord_adapter.d.ts.map +0 -1
- package/extension/daemon/adapters/messaging/discord_adapter.js +0 -9
- package/extension/daemon/adapters/messaging/discord_adapter.js.map +0 -1
- package/extension/daemon/adapters/messaging/discord_menu.d.ts +0 -15
- package/extension/daemon/adapters/messaging/discord_menu.d.ts.map +0 -1
- package/extension/daemon/adapters/messaging/discord_menu.js +0 -9
- package/extension/daemon/adapters/messaging/discord_menu.js.map +0 -1
- package/extension/daemon/adapters/messaging/matrix_adapter.d.ts +0 -39
- package/extension/daemon/adapters/messaging/matrix_adapter.d.ts.map +0 -1
- package/extension/daemon/adapters/messaging/matrix_adapter.js +0 -9
- package/extension/daemon/adapters/messaging/matrix_adapter.js.map +0 -1
- package/extension/daemon/adapters/messaging/slack_adapter.d.ts +0 -115
- package/extension/daemon/adapters/messaging/slack_adapter.d.ts.map +0 -1
- package/extension/daemon/adapters/messaging/slack_adapter.js +0 -9
- package/extension/daemon/adapters/messaging/slack_adapter.js.map +0 -1
- package/extension/daemon/adapters/messaging/telegram_adapter.d.ts +0 -90
- package/extension/daemon/adapters/messaging/telegram_adapter.d.ts.map +0 -1
- package/extension/daemon/adapters/messaging/telegram_adapter.js +0 -9
- package/extension/daemon/adapters/messaging/telegram_adapter.js.map +0 -1
- package/extension/daemon/adapters/messaging/telegram_client.d.ts +0 -75
- package/extension/daemon/adapters/messaging/telegram_client.d.ts.map +0 -1
- package/extension/daemon/adapters/messaging/telegram_client.js +0 -9
- package/extension/daemon/adapters/messaging/telegram_client.js.map +0 -1
- package/extension/daemon/adapters/messaging/telegram_keyboards.d.ts +0 -55
- package/extension/daemon/adapters/messaging/telegram_keyboards.d.ts.map +0 -1
- package/extension/daemon/adapters/messaging/telegram_keyboards.js +0 -9
- package/extension/daemon/adapters/messaging/telegram_keyboards.js.map +0 -1
- package/extension/daemon/adapters/messaging/whatsapp_adapter.d.ts +0 -30
- package/extension/daemon/adapters/messaging/whatsapp_adapter.d.ts.map +0 -1
- package/extension/daemon/adapters/messaging/whatsapp_adapter.js +0 -9
- package/extension/daemon/adapters/messaging/whatsapp_adapter.js.map +0 -1
- package/extension/daemon/adapters/messaging/whatsapp_baileys.d.ts +0 -84
- package/extension/daemon/adapters/messaging/whatsapp_baileys.d.ts.map +0 -1
- package/extension/daemon/adapters/messaging/whatsapp_baileys.js +0 -9
- package/extension/daemon/adapters/messaging/whatsapp_baileys.js.map +0 -1
- package/extension/daemon/core/blocking_prompt_bridge.d.ts +0 -99
- package/extension/daemon/core/blocking_prompt_bridge.d.ts.map +0 -1
- package/extension/daemon/core/blocking_prompt_bridge.js +0 -9
- package/extension/daemon/core/blocking_prompt_bridge.js.map +0 -1
- package/extension/daemon/core/chat_switchboard.d.ts +0 -35
- package/extension/daemon/core/chat_switchboard.d.ts.map +0 -1
- package/extension/daemon/core/chat_switchboard.js +0 -9
- package/extension/daemon/core/chat_switchboard.js.map +0 -1
- package/extension/daemon/core/companion_daemon.d.ts +0 -23
- package/extension/daemon/core/companion_daemon.d.ts.map +0 -1
- package/extension/daemon/core/companion_daemon.js +0 -9
- package/extension/daemon/core/companion_daemon.js.map +0 -1
- package/extension/daemon/core/email_reporter.d.ts +0 -109
- package/extension/daemon/core/email_reporter.d.ts.map +0 -1
- package/extension/daemon/core/email_reporter.js +0 -9
- package/extension/daemon/core/email_reporter.js.map +0 -1
- package/extension/daemon/core/licensing.d.ts +0 -44
- package/extension/daemon/core/licensing.d.ts.map +0 -1
- package/extension/daemon/core/licensing.js +0 -9
- package/extension/daemon/core/licensing.js.map +0 -1
- package/extension/daemon/core/media_handler.d.ts +0 -67
- package/extension/daemon/core/media_handler.d.ts.map +0 -1
- package/extension/daemon/core/media_handler.js +0 -9
- package/extension/daemon/core/media_handler.js.map +0 -1
- package/extension/daemon/core/os_keychain.d.ts +0 -41
- package/extension/daemon/core/os_keychain.d.ts.map +0 -1
- package/extension/daemon/core/os_keychain.js +0 -9
- package/extension/daemon/core/os_keychain.js.map +0 -1
- package/extension/daemon/core/outbound_dispatcher.d.ts +0 -33
- package/extension/daemon/core/outbound_dispatcher.d.ts.map +0 -1
- package/extension/daemon/core/outbound_dispatcher.js +0 -9
- package/extension/daemon/core/outbound_dispatcher.js.map +0 -1
- package/extension/daemon/core/pdf_generator.d.ts +0 -66
- package/extension/daemon/core/pdf_generator.d.ts.map +0 -1
- package/extension/daemon/core/pdf_generator.js +0 -9
- package/extension/daemon/core/pdf_generator.js.map +0 -1
- package/extension/daemon/core/process_checker.d.ts +0 -10
- package/extension/daemon/core/process_checker.d.ts.map +0 -1
- package/extension/daemon/core/process_checker.js +0 -9
- package/extension/daemon/core/process_checker.js.map +0 -1
- package/extension/daemon/core/prompt_sanitizer.d.ts +0 -15
- package/extension/daemon/core/prompt_sanitizer.d.ts.map +0 -1
- package/extension/daemon/core/prompt_sanitizer.js +0 -9
- package/extension/daemon/core/prompt_sanitizer.js.map +0 -1
- package/extension/daemon/core/security.d.ts +0 -75
- package/extension/daemon/core/security.d.ts.map +0 -1
- package/extension/daemon/core/security.js +0 -9
- package/extension/daemon/core/security.js.map +0 -1
- package/extension/daemon/core/session_manager.d.ts +0 -67
- package/extension/daemon/core/session_manager.d.ts.map +0 -1
- package/extension/daemon/core/session_manager.js +0 -9
- package/extension/daemon/core/session_manager.js.map +0 -1
- package/extension/daemon/core/standalone_dashboard/client_script.d.ts +0 -5
- package/extension/daemon/core/standalone_dashboard/client_script.d.ts.map +0 -1
- package/extension/daemon/core/standalone_dashboard/client_script.js +0 -9
- package/extension/daemon/core/standalone_dashboard/client_script.js.map +0 -1
- package/extension/daemon/core/standalone_dashboard/components/header.d.ts +0 -5
- package/extension/daemon/core/standalone_dashboard/components/header.d.ts.map +0 -1
- package/extension/daemon/core/standalone_dashboard/components/header.js +0 -9
- package/extension/daemon/core/standalone_dashboard/components/header.js.map +0 -1
- package/extension/daemon/core/standalone_dashboard/components/modals.d.ts +0 -5
- package/extension/daemon/core/standalone_dashboard/components/modals.d.ts.map +0 -1
- package/extension/daemon/core/standalone_dashboard/components/modals.js +0 -9
- package/extension/daemon/core/standalone_dashboard/components/modals.js.map +0 -1
- package/extension/daemon/core/standalone_dashboard/components/remote_deck.d.ts +0 -5
- package/extension/daemon/core/standalone_dashboard/components/remote_deck.d.ts.map +0 -1
- package/extension/daemon/core/standalone_dashboard/components/remote_deck.js +0 -9
- package/extension/daemon/core/standalone_dashboard/components/remote_deck.js.map +0 -1
- package/extension/daemon/core/standalone_dashboard/components/settings_deck.d.ts +0 -5
- package/extension/daemon/core/standalone_dashboard/components/settings_deck.d.ts.map +0 -1
- package/extension/daemon/core/standalone_dashboard/components/settings_deck.js +0 -9
- package/extension/daemon/core/standalone_dashboard/components/settings_deck.js.map +0 -1
- package/extension/daemon/core/standalone_dashboard/index.d.ts +0 -13
- package/extension/daemon/core/standalone_dashboard/index.d.ts.map +0 -1
- package/extension/daemon/core/standalone_dashboard/index.js +0 -9
- package/extension/daemon/core/standalone_dashboard/index.js.map +0 -1
- package/extension/daemon/core/standalone_dashboard/styles.d.ts +0 -6
- package/extension/daemon/core/standalone_dashboard/styles.d.ts.map +0 -1
- package/extension/daemon/core/standalone_dashboard/styles.js +0 -9
- package/extension/daemon/core/standalone_dashboard/styles.js.map +0 -1
- package/extension/daemon/core/standalone_dashboard.d.ts +0 -6
- package/extension/daemon/core/standalone_dashboard.d.ts.map +0 -1
- package/extension/daemon/core/standalone_dashboard.js +0 -9
- package/extension/daemon/core/standalone_dashboard.js.map +0 -1
- package/extension/daemon/core/telemetry.d.ts +0 -62
- package/extension/daemon/core/telemetry.d.ts.map +0 -1
- package/extension/daemon/core/telemetry.js +0 -9
- package/extension/daemon/core/telemetry.js.map +0 -1
- package/extension/daemon/core/transcript_watcher.d.ts +0 -23
- package/extension/daemon/core/transcript_watcher.d.ts.map +0 -1
- package/extension/daemon/core/transcript_watcher.js +0 -9
- package/extension/daemon/core/transcript_watcher.js.map +0 -1
- package/extension/daemon/core/transcription_refiner.d.ts +0 -34
- package/extension/daemon/core/transcription_refiner.d.ts.map +0 -1
- package/extension/daemon/core/transcription_refiner.js +0 -9
- package/extension/daemon/core/transcription_refiner.js.map +0 -1
- package/extension/daemon/core/tui_dashboard.d.ts +0 -8
- package/extension/daemon/core/tui_dashboard.d.ts.map +0 -1
- package/extension/daemon/core/tui_dashboard.js +0 -9
- package/extension/daemon/core/tui_dashboard.js.map +0 -1
- package/extension/daemon/index.d.ts +0 -15
- package/extension/daemon/index.d.ts.map +0 -1
- package/extension/daemon/index.js +0 -9
- package/extension/daemon/index.js.map +0 -1
- package/extension/daemon/types.d.ts +0 -159
- package/extension/daemon/types.d.ts.map +0 -1
- package/extension/daemon/types.js +0 -9
- package/extension/daemon/types.js.map +0 -1
- package/extension/dist/adapters/ide/ide_adapters.d.ts +0 -45
- package/extension/dist/adapters/ide/ide_adapters.d.ts.map +0 -1
- package/extension/dist/adapters/ide/ide_adapters.js +0 -9
- package/extension/dist/adapters/ide/ide_adapters.js.map +0 -1
- package/extension/dist/adapters/messaging/discord_adapter.d.ts +0 -56
- package/extension/dist/adapters/messaging/discord_adapter.d.ts.map +0 -1
- package/extension/dist/adapters/messaging/discord_adapter.js +0 -9
- package/extension/dist/adapters/messaging/discord_adapter.js.map +0 -1
- package/extension/dist/adapters/messaging/discord_menu.d.ts +0 -15
- package/extension/dist/adapters/messaging/discord_menu.d.ts.map +0 -1
- package/extension/dist/adapters/messaging/discord_menu.js +0 -9
- package/extension/dist/adapters/messaging/discord_menu.js.map +0 -1
- package/extension/dist/adapters/messaging/matrix_adapter.d.ts +0 -39
- package/extension/dist/adapters/messaging/matrix_adapter.d.ts.map +0 -1
- package/extension/dist/adapters/messaging/matrix_adapter.js +0 -9
- package/extension/dist/adapters/messaging/matrix_adapter.js.map +0 -1
- package/extension/dist/adapters/messaging/slack_adapter.d.ts +0 -115
- package/extension/dist/adapters/messaging/slack_adapter.d.ts.map +0 -1
- package/extension/dist/adapters/messaging/slack_adapter.js +0 -9
- package/extension/dist/adapters/messaging/slack_adapter.js.map +0 -1
- package/extension/dist/adapters/messaging/telegram_adapter.d.ts +0 -90
- package/extension/dist/adapters/messaging/telegram_adapter.d.ts.map +0 -1
- package/extension/dist/adapters/messaging/telegram_adapter.js +0 -9
- package/extension/dist/adapters/messaging/telegram_adapter.js.map +0 -1
- package/extension/dist/adapters/messaging/telegram_client.d.ts +0 -75
- package/extension/dist/adapters/messaging/telegram_client.d.ts.map +0 -1
- package/extension/dist/adapters/messaging/telegram_client.js +0 -9
- package/extension/dist/adapters/messaging/telegram_client.js.map +0 -1
- package/extension/dist/adapters/messaging/telegram_keyboards.d.ts +0 -55
- package/extension/dist/adapters/messaging/telegram_keyboards.d.ts.map +0 -1
- package/extension/dist/adapters/messaging/telegram_keyboards.js +0 -9
- package/extension/dist/adapters/messaging/telegram_keyboards.js.map +0 -1
- package/extension/dist/adapters/messaging/whatsapp_adapter.d.ts +0 -30
- package/extension/dist/adapters/messaging/whatsapp_adapter.d.ts.map +0 -1
- package/extension/dist/adapters/messaging/whatsapp_adapter.js +0 -9
- package/extension/dist/adapters/messaging/whatsapp_adapter.js.map +0 -1
- package/extension/dist/adapters/messaging/whatsapp_baileys.d.ts +0 -84
- package/extension/dist/adapters/messaging/whatsapp_baileys.d.ts.map +0 -1
- package/extension/dist/adapters/messaging/whatsapp_baileys.js +0 -9
- package/extension/dist/adapters/messaging/whatsapp_baileys.js.map +0 -1
- package/extension/dist/adapters/package.json +0 -3
- package/extension/dist/command_guard.js +0 -9
- package/extension/dist/commands_manager.js +0 -9
- package/extension/dist/core/blocking_prompt_bridge.d.ts +0 -99
- package/extension/dist/core/blocking_prompt_bridge.d.ts.map +0 -1
- package/extension/dist/core/blocking_prompt_bridge.js +0 -9
- package/extension/dist/core/blocking_prompt_bridge.js.map +0 -1
- package/extension/dist/core/chat_switchboard.d.ts +0 -35
- package/extension/dist/core/chat_switchboard.d.ts.map +0 -1
- package/extension/dist/core/chat_switchboard.js +0 -9
- package/extension/dist/core/chat_switchboard.js.map +0 -1
- package/extension/dist/core/companion_daemon.d.ts +0 -23
- package/extension/dist/core/companion_daemon.d.ts.map +0 -1
- package/extension/dist/core/companion_daemon.js +0 -9
- package/extension/dist/core/companion_daemon.js.map +0 -1
- package/extension/dist/core/email_reporter.d.ts +0 -109
- package/extension/dist/core/email_reporter.d.ts.map +0 -1
- package/extension/dist/core/email_reporter.js +0 -9
- package/extension/dist/core/email_reporter.js.map +0 -1
- package/extension/dist/core/licensing.d.ts +0 -44
- package/extension/dist/core/licensing.d.ts.map +0 -1
- package/extension/dist/core/licensing.js +0 -9
- package/extension/dist/core/licensing.js.map +0 -1
- package/extension/dist/core/media_handler.d.ts +0 -67
- package/extension/dist/core/media_handler.d.ts.map +0 -1
- package/extension/dist/core/media_handler.js +0 -9
- package/extension/dist/core/media_handler.js.map +0 -1
- package/extension/dist/core/os_keychain.d.ts +0 -41
- package/extension/dist/core/os_keychain.d.ts.map +0 -1
- package/extension/dist/core/os_keychain.js +0 -9
- package/extension/dist/core/os_keychain.js.map +0 -1
- package/extension/dist/core/outbound_dispatcher.d.ts +0 -33
- package/extension/dist/core/outbound_dispatcher.d.ts.map +0 -1
- package/extension/dist/core/outbound_dispatcher.js +0 -9
- package/extension/dist/core/outbound_dispatcher.js.map +0 -1
- package/extension/dist/core/package.json +0 -3
- package/extension/dist/core/pdf_generator.d.ts +0 -66
- package/extension/dist/core/pdf_generator.d.ts.map +0 -1
- package/extension/dist/core/pdf_generator.js +0 -9
- package/extension/dist/core/pdf_generator.js.map +0 -1
- package/extension/dist/core/process_checker.d.ts +0 -10
- package/extension/dist/core/process_checker.d.ts.map +0 -1
- package/extension/dist/core/process_checker.js +0 -9
- package/extension/dist/core/process_checker.js.map +0 -1
- package/extension/dist/core/prompt_sanitizer.d.ts +0 -15
- package/extension/dist/core/prompt_sanitizer.d.ts.map +0 -1
- package/extension/dist/core/prompt_sanitizer.js +0 -9
- package/extension/dist/core/prompt_sanitizer.js.map +0 -1
- package/extension/dist/core/security.d.ts +0 -75
- package/extension/dist/core/security.d.ts.map +0 -1
- package/extension/dist/core/security.js +0 -9
- package/extension/dist/core/security.js.map +0 -1
- package/extension/dist/core/session_manager.d.ts +0 -67
- package/extension/dist/core/session_manager.d.ts.map +0 -1
- package/extension/dist/core/session_manager.js +0 -9
- package/extension/dist/core/session_manager.js.map +0 -1
- package/extension/dist/core/standalone_dashboard/client_script.d.ts +0 -5
- package/extension/dist/core/standalone_dashboard/client_script.d.ts.map +0 -1
- package/extension/dist/core/standalone_dashboard/client_script.js +0 -9
- package/extension/dist/core/standalone_dashboard/client_script.js.map +0 -1
- package/extension/dist/core/standalone_dashboard/components/header.d.ts +0 -5
- package/extension/dist/core/standalone_dashboard/components/header.d.ts.map +0 -1
- package/extension/dist/core/standalone_dashboard/components/header.js +0 -9
- package/extension/dist/core/standalone_dashboard/components/header.js.map +0 -1
- package/extension/dist/core/standalone_dashboard/components/modals.d.ts +0 -5
- package/extension/dist/core/standalone_dashboard/components/modals.d.ts.map +0 -1
- package/extension/dist/core/standalone_dashboard/components/modals.js +0 -9
- package/extension/dist/core/standalone_dashboard/components/modals.js.map +0 -1
- package/extension/dist/core/standalone_dashboard/components/remote_deck.d.ts +0 -5
- package/extension/dist/core/standalone_dashboard/components/remote_deck.d.ts.map +0 -1
- package/extension/dist/core/standalone_dashboard/components/remote_deck.js +0 -9
- package/extension/dist/core/standalone_dashboard/components/remote_deck.js.map +0 -1
- package/extension/dist/core/standalone_dashboard/components/settings_deck.d.ts +0 -5
- package/extension/dist/core/standalone_dashboard/components/settings_deck.d.ts.map +0 -1
- package/extension/dist/core/standalone_dashboard/components/settings_deck.js +0 -9
- package/extension/dist/core/standalone_dashboard/components/settings_deck.js.map +0 -1
- package/extension/dist/core/standalone_dashboard/index.d.ts +0 -13
- package/extension/dist/core/standalone_dashboard/index.d.ts.map +0 -1
- package/extension/dist/core/standalone_dashboard/index.js +0 -9
- package/extension/dist/core/standalone_dashboard/index.js.map +0 -1
- package/extension/dist/core/standalone_dashboard/styles.d.ts +0 -6
- package/extension/dist/core/standalone_dashboard/styles.d.ts.map +0 -1
- package/extension/dist/core/standalone_dashboard/styles.js +0 -9
- package/extension/dist/core/standalone_dashboard/styles.js.map +0 -1
- package/extension/dist/core/standalone_dashboard.d.ts +0 -6
- package/extension/dist/core/standalone_dashboard.d.ts.map +0 -1
- package/extension/dist/core/standalone_dashboard.js +0 -9
- package/extension/dist/core/standalone_dashboard.js.map +0 -1
- package/extension/dist/core/telemetry.d.ts +0 -62
- package/extension/dist/core/telemetry.d.ts.map +0 -1
- package/extension/dist/core/telemetry.js +0 -9
- package/extension/dist/core/telemetry.js.map +0 -1
- package/extension/dist/core/transcript_watcher.d.ts +0 -23
- package/extension/dist/core/transcript_watcher.d.ts.map +0 -1
- package/extension/dist/core/transcript_watcher.js +0 -9
- package/extension/dist/core/transcript_watcher.js.map +0 -1
- package/extension/dist/core/transcription_refiner.d.ts +0 -34
- package/extension/dist/core/transcription_refiner.d.ts.map +0 -1
- package/extension/dist/core/transcription_refiner.js +0 -9
- package/extension/dist/core/transcription_refiner.js.map +0 -1
- package/extension/dist/core/tui_dashboard.d.ts +0 -8
- package/extension/dist/core/tui_dashboard.d.ts.map +0 -1
- package/extension/dist/core/tui_dashboard.js +0 -9
- package/extension/dist/core/tui_dashboard.js.map +0 -1
- package/extension/dist/extension.js +0 -9
- package/extension/dist/ide_detector.js +0 -9
- package/extension/dist/index.js +0 -9
- package/extension/dist/remote_actions.js +0 -9
- package/extension/dist/sidebar_provider.js +0 -9
- package/extension/dist/types.js +0 -9
- package/extension/dist/webview/webview_html.js +0 -830
- package/extension/dist/webview/webview_scripts.js +0 -701
- package/extension/dist/webview/webview_styles.js +0 -1075
- package/extension/dist/webview_template.js +0 -9
- package/extension/editormate-1.0.0.vsix +0 -0
- package/extension/editormate-1.0.1.vsix +0 -0
- package/extension/editormate-1.0.2.vsix +0 -0
- package/extension/editormate-companion-1.0.0.vsix +0 -0
- package/extension/node_modules/.package-lock.json +0 -15
- package/extension/node_modules/@types/vscode/LICENSE +0 -21
- package/extension/node_modules/@types/vscode/README.md +0 -15
- package/extension/node_modules/@types/vscode/index.d.ts +0 -21244
- package/extension/node_modules/@types/vscode/package.json +0 -26
- package/extension/package-lock.json +0 -25
- package/extension/package.json +0 -154
- package/extension/scripts/build_protected.js +0 -88
- package/extension/scripts/transcribe_audio.py +0 -42
- package/extension/src/command_guard.ts +0 -201
- package/extension/src/commands_manager.ts +0 -466
- package/extension/src/extension.ts +0 -458
- package/extension/src/ide_detector.ts +0 -60
- package/extension/src/remote_actions.ts +0 -284
- package/extension/src/sidebar_provider.ts +0 -471
- package/extension/src/webview/webview_html.ts +0 -895
- package/extension/src/webview/webview_scripts.ts +0 -698
- package/extension/src/webview/webview_styles.ts +0 -1073
- package/extension/src/webview_template.ts +0 -33
- package/extension/tsconfig.json +0 -16
|
@@ -1,9 +1,385 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* EditorMate —
|
|
3
|
-
*
|
|
4
|
-
* PROPRIETARY AND CONFIDENTIAL.
|
|
5
|
-
* Designed & written by Praveen Ojha.
|
|
6
|
-
* Even if you can inspect or read this compiled code, you may NOT copy, modify,
|
|
7
|
-
* distribute, or reverse-engineer any part of this software without prior written consent.
|
|
2
|
+
* EditorMate — Telegram Bot API Client
|
|
3
|
+
* Manages HTTP communications, long-polling, message chunking, and file delivery.
|
|
8
4
|
*/
|
|
9
|
-
function _0x33ed24(_0x2880d2,_0x4ac0fc,_0x4385e6,_0x416fd8){const _0xb515d7={_0x33d386:0x26c};return _0x2d69(_0x4385e6- -_0xb515d7._0x33d386,_0x4ac0fc);}(function(_0x26196b,_0x58ee17){const _0x2c3197={_0x125aac:0xad,_0x5c06e1:0xb7,_0x53951e:0xdd,_0x15337b:0xb8,_0x5497b6:0xaf,_0x32a623:0x56,_0x3a7fb9:0x81,_0x395c12:0x32,_0xeef489:0x64,_0x449ccc:0x40,_0x4bedec:0x6b,_0x1a9c0e:0x142,_0x5c4554:0x130,_0x334f36:0x107,_0x4cea57:0x126,_0x497522:0x165,_0x35bee6:0x152,_0x153317:0x151,_0x4b9bba:0xd8,_0x33d2af:0x12f,_0x4f4787:0x53},_0x5db864={_0x52139b:0x1f6},_0x3b53fb={_0x2be744:0x98},_0xd88236=_0x26196b();function _0x49c473(_0x319386,_0x455ece,_0xb5205a,_0x7f5197){return _0x2d69(_0x455ece- -_0x3b53fb._0x2be744,_0xb5205a);}function _0x45735e(_0x3fae86,_0x3e6858,_0x446a3b,_0x3eca44){return _0x2d69(_0x446a3b- -_0x5db864._0x52139b,_0x3e6858);}while(!![]){try{const _0xb09a8a=parseInt(_0x49c473(_0x2c3197._0x125aac,_0x2c3197._0x5c06e1,_0x2c3197._0x53951e,0xa8))/(-0x37d*-0x9+0x2e*0x9a+-0x3b10)+parseInt(_0x45735e(-_0x2c3197._0x15337b,-_0x2c3197._0x5497b6,-0xcf,-0xbf))/(-0x29*0x92+0x246f+-0xd0b)*(parseInt(_0x49c473(_0x2c3197._0x32a623,_0x2c3197._0x3a7fb9,0xd2,0x39))/(-0x5*-0x1b+0x2*0xe08+-0x1c94))+parseInt(_0x45735e(-0xa1,-0x57,-0x26,-0x8c))/(-0x6b4+-0x77*-0x2+0x5ca)*(parseInt(_0x45735e(-_0x2c3197._0x395c12,-_0x2c3197._0xeef489,-_0x2c3197._0x449ccc,-_0x2c3197._0x4bedec))/(-0x5b*0x1+0x1409+-0x13a9*0x1))+-parseInt(_0x49c473(0xe8,_0x2c3197._0x1a9c0e,0x1a9,0x1c8))/(0x2bb+0x1ec2+-0x2177)*(parseInt(_0x49c473(_0x2c3197._0x5c4554,_0x2c3197._0x334f36,0x147,_0x2c3197._0x4cea57))/(-0x1*0xf1a+0x3*0xa16+0xf21*-0x1))+parseInt(_0x49c473(0x163,0x155,_0x2c3197._0x497522,0xe2))/(0xe0a+0x166*0x13+-0xe*0x2e6)*(-parseInt(_0x49c473(0x182,_0x2c3197._0x35bee6,_0x2c3197._0x153317,0x1a0))/(-0x1d01+0x1*0x1095+-0x427*-0x3))+-parseInt(_0x49c473(_0x2c3197._0xeef489,_0x2c3197._0x4b9bba,0xc3,_0x2c3197._0x33d2af))/(0x13d4+0xfed+-0x23b7)+parseInt(_0x45735e(_0x2c3197._0x4f4787,-0x6d,0x4,0x14))/(0x3*0xa73+-0xa9*0x27+-0x58f);if(_0xb09a8a===_0x58ee17)break;else _0xd88236['push'](_0xd88236['shift']());}catch(_0x2d0fd9){_0xd88236['push'](_0xd88236['shift']());}}}(_0x17b7,-0x1*-0x95461+-0x8*0x10459+0x105c7*0xb));import _0x43f9b3 from'fs';function _0x17b7(){const _0x3350d3=['BgL2zsbKzxm','vNDRtuO','EuXsu1q','ig1VzgLMAwu','B25Z','y2SGywn0Aw8','AM9PBG','Bg9HzfbLCNm','C3rVCa','CKvUvuO','CNrkD00','AhvxAhO','yxjYyxLcDwy','l2zPBguVyM8','vNbHtKu','zgLMzG','EKXkDvC','uNvUihrLCM0','p2zPBgvFAwq','yxrL','Bw1HBMrZ','ANfcvMO','DhjPBq','Aw5HBcbJB20','CgHVDg8','thDTt0S','DgnO','qKT0tei','y09MvMW','weLvt3O','ntu5mMzTEu5wyG','BMXLwxy','zfHfvuG','l3nLBMrnzxm','yvL2B3u','BNn0CNvJDgK','DxrMoa','Bwf4','y29TBwfUzhm','yxbWBgLJyxq','C3bSAxq','BNvTyMvY','q2fWDhvYzsa','y2Pfu28','ndG4BuzcCwT0','y1DrANm','se11wwi','AfvKEMq','ue1mqxa','l2jVDa','DKfAywW','u0XSwfC','yxbWzw5K','D0nwse8','twfYA2rVD24','CgfYC2vFBw8','C3rYAw5NAwy','BgvUz3rO','C2vUzenOyxq','CgfYC2vnB2q','ywXSyMfJA1e','B3jRC3bHy2u','CMvNAxn0zxi','Ahr0Chm6lY8','BwTKAxjtEw4','C2vUze1LC3m','z29ID2m','yMv3qLi','Dhjvvg0','BMfTzq','zNntsKe','zg9JDw1LBNq','A3rVCc9jreu','zvn5BMm','CxbHweO','ruXsBuy','wu1lwvq','yxr1CYWGywm','wgXwvNm','y0zdzNy','tgLZDcbJB24','qwDLBNqGC3q','BMSGCMvWBgK','Aw1Hz2uVANa','mtmWndK4m3rivhzqEa','l2fUC3DLCKm','ruHVweG','ue9tva','ChjVAMvJDhm','ywn0AxzLihC','ig1LBNu','DenVBNrYB2W','s25cDLa','ALfnvuy','s1jbq00','DhLWAw5N','uejIvxO','ugf1C2uGB3i','C2LNBMfS','y2f0y2G','wM9Luum','CLj2weO','A3vW','y2HHDeLK','Axn0zwrvCgq','sujLy1y','Cg9SBefIB3i','zhDtteW','rw5vwKW','ywn0AxzLige','BgryCg4','vwHhuhm','CgXHAw4','vxHPAuG','CKngDKG','DefJDgLVBG','rgnVBKy','nZmWnZeWmgv4C3rusW','CgrKyKm','BwfW','qwjVCNrfCNi','qwjcv3u','zLDzwve','y2H1BMTnzxm','sgvSCcaMigK','Bw5Pqwe','Aw9Ul3bKzG','ug1uy24','yw5ZD2vYq2e','CgvYC2LZDfu','De9JwNe','vMXhC1u','DgvSzwDYyw0','DgvZp29MzNm','x3f1zxj5','ANnVBG','zhrACLm','CMvWBhLFBwe','uLfxrue','l3nLBMrqAg8','twnRBwK','vMLLDYbNAxq','CMvJzw50igm','s0jTr0m','AfH1rKO','zMLSzv9Wyxq','BgLUzW','A1LwC0W','jNrPBwvVDxq','BIbPBMXPBMu','DcaYltmGsuq','zxHPC3rZu3K','wwnqAMO','yxrLswq','C3rLBsbqrey','svr0EKW','yM90vg9Rzw4','BgfZDeLUzgu','t2TRDuC','t3bLBIbXDwK','AYaMigDPDca','y2fSBgjHy2S','BgXIywnRuxu','B09IAwW','n2fTrgLczW','DgL2zsb0yxm','Ee9M','uNzYA3e','Ag9TzwrPCG','tu1VExe','sw5ZCgvJDca','BMvJDgvKihC','qwn0Aw9U','icyGzgvSAxy','zxmGDg8GCgG','zwLNs2u','Dfv2BLG','C0nXq3K','vNPnA2K','ywDL','CMvHzezPBgu','Aw9Ul2PZB24','BwvUDa','CMvZDwX0','yNjPBMC','DgvYBwLUywW','DxflBvm','mty1sMnvrxLj','C2fNzq','Acb0Aw1Lige','CgrM','DwvYEq','BMrZ','BwfUzcbPBIa','zvDZy1C','C2vUzfbOB3q','Cg9W','B21VDxmGC3K','zxiGyxv0B24','zeDsC1q','C3rHCNrqB2W','y1DHtvi','wvLuB2O','D3jPDgvgAwW','seTXsxC','AMzYu2u','BwvZC2fNzv8','BwnW','CMT1Ca','sgjfvfO','Dgvjza','x29MzNnLDc4','zxj5','mZK3otzSBhfwyuy','z1DOrLG','y2fWDgLVBG','C3rYAw5N','l3nLDe15q28','C3vIC3rYAw4','uhvSBcbSyxm','uNbfD0y','C2fNzvrLEhq','BgvY','odqXmZaXnffWwNrora','zMvY','Ag90','zNjVBq','ywjVCNq','A3vHwvu','Agf0CYb3Axq','BgfZDfvWzge','lMvKAxrVCM0','l2vKAxrnzxm','A2vU','Dgv4Da','tgLZDcaXmca','u3LUyW','reLtBhG','D2nYr2K','mJDgAurYDe4','zcbMAwXLCW','qM90q29TBwe','nde2odeZnLLUzezoDa','AxnqB2XSAw4','CMvWBhLnyxi','qMX2Cgi','CgrHDgvjza','AgvSCa','wLDHsfC','wvfTwwS','B3qUANbN','DxbKyxrLvg8','y2HHDf9Pza','swfxELO','C2nYzwvUC2G','mJy2ntuZmZjkAuHqq2W','l3nLBMrdAge','t0jwChK','Dw1LBNq','zKr1B3O','Eu1mEuO','EvPVD0C','z3nIt20','ywn0AxzLie0','ihnJCMvLBNm','z28GjIbZD2K','z3jHBs5VCMC','wM1IvMS','ChvZAa','rgfAz3q','yxbPlNrLBgu','vxbkrwG'];_0x17b7=function(){return _0x3350d3;};return _0x17b7();}function _0x2d69(_0x2ed75c,_0xfb0789){_0x2ed75c=_0x2ed75c-(0x93a+0x42c+-0x1f*0x66);const _0x212527=_0x17b7();let _0x3f8007=_0x212527[_0x2ed75c];if(_0x2d69['vgzpvB']===undefined){var _0x377bf6=function(_0x14ecb1){const _0x284fe4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2861df='',_0x2f33ab='';for(let _0x25603b=-0x120d*-0x2+-0x1*0x15a6+-0x73a*0x2,_0x102410,_0x42c1cf,_0x469ac0=0x123e*0x2+-0x1847+-0xc35;_0x42c1cf=_0x14ecb1['charAt'](_0x469ac0++);~_0x42c1cf&&(_0x102410=_0x25603b%(0x1a77+0x5d+-0x1ad0)?_0x102410*(0x3*0x1a3+0x20db+0xe*-0x2ae)+_0x42c1cf:_0x42c1cf,_0x25603b++%(-0x57*0x2+-0x2145+-0x2f*-0xb9))?_0x2861df+=String['fromCharCode'](-0x6b9*0x1+0xf4d+-0x795&_0x102410>>(-(0x1*-0x113b+0x5c8*-0x6+-0x3*-0x114f)*_0x25603b&0x233*-0x3+0x1*0x1c55+-0xe*0x18d)):-0x1654*0x1+-0x174f+0x2da3){_0x42c1cf=_0x284fe4['indexOf'](_0x42c1cf);}for(let _0xad098b=-0xd6e+-0x1*0x5f2+-0x4*-0x4d8,_0xd3d1b3=_0x2861df['length'];_0xad098b<_0xd3d1b3;_0xad098b++){_0x2f33ab+='%'+('00'+_0x2861df['charCodeAt'](_0xad098b)['toString'](-0xf4*0x26+-0x936+-0x1*-0x2d7e))['slice'](-(0x241*0xe+-0x17*-0xb2+-0x1*0x2f8a));}return decodeURIComponent(_0x2f33ab);};_0x2d69['sYVIOq']=_0x377bf6,_0x2d69['mWaPeE']={},_0x2d69['vgzpvB']=!![];}const _0x170731=_0x212527[0x16f0*0x1+-0x22*-0x8a+-0x2944];_0x2d69['tKVSPu']!==_0x170731&&(_0x2d69['mWaPeE']={},_0x2d69['tKVSPu']=_0x170731);const _0x383bda=_0x2d69['mWaPeE'][_0x2ed75c];return _0x383bda===undefined?(_0x3f8007=_0x2d69['sYVIOq'](_0x3f8007),_0x2d69['mWaPeE'][_0x2ed75c]=_0x3f8007):_0x3f8007=_0x383bda,_0x3f8007;}import _0x526a6b from'path';import _0x3c2c36 from'os';function _0x18d02e(_0xe8b022,_0x285f79,_0x4b500f,_0x388bdd){const _0x1b9541={_0x2da898:0x127};return _0x2d69(_0x4b500f-_0x1b9541._0x2da898,_0x285f79);}export class TelegramClient{[_0x18d02e(0x332,0x258,0x2be,0x30f)];[_0x18d02e(0x36f,0x2fd,0x315,0x2d6)+'g']=![];[_0x33ed24(-0x18f,-0x14f,-0x107,-0x108)+_0x18d02e(0x1fc,0x282,0x27d,0x246)+_0x33ed24(-0xe3,-0x11b,-0x93,-0x40)]=null;[_0x18d02e(0x2e9,0x2a2,0x308,0x36c)+_0x18d02e(0x32c,0x344,0x2f4,0x2fb)]=0x1caa+0xdf5+-0x2a9f;constructor(_0x1a836c){const _0x3f47c2={_0x1bf8af:0x2f4,_0x5b9d14:0x303,_0x5ed657:0x2cf,_0x9be4cb:0x2bb,_0x534f2f:0x326,_0x1f4c26:0x378,_0x33daf1:0x39a},_0x518317={_0x39b27c:0x30,_0x37fea8:0xab},_0x4ba603={_0x22ae7c:0xac};function _0x1843bd(_0x316e5b,_0x5f0906,_0xeb6a24,_0x42ed7b){return _0x18d02e(_0x316e5b-0x18e,_0xeb6a24,_0x5f0906-0x79,_0x42ed7b-_0x4ba603._0x22ae7c);}function _0x88b82f(_0x3a0cae,_0x446c7d,_0x24e7b1,_0x3c7dde){return _0x18d02e(_0x3a0cae-_0x518317._0x39b27c,_0x24e7b1,_0x3c7dde-0x195,_0x3c7dde-_0x518317._0x37fea8);}this['botToken']=_0x1a836c,this[_0x1843bd(0x35e,0x3b2,0x33f,0x37f)+_0x1843bd(_0x3f47c2._0x1bf8af,_0x3f47c2._0x5b9d14,_0x3f47c2._0x5ed657,_0x3f47c2._0x9be4cb)+_0x1843bd(_0x3f47c2._0x534f2f,0x334,_0x3f47c2._0x1f4c26,_0x3f47c2._0x33daf1)]();}['loadPers'+_0x18d02e(0x290,0x306,0x28a,0x276)+'ateId'](){const _0x1a7275={_0x20ceb3:0xf5,_0x6ec6ba:0xe0,_0x2e13cf:0xc7,_0x99dfe8:0x26b,_0x2dba75:0x2ed,_0xd14a6c:0x25b,_0x42b079:0x27f,_0x1b5128:0x288,_0xbc12b6:0x235,_0x22bee2:0x266,_0x274af2:0x11e,_0x1f83a5:0x226,_0x310f97:0x309,_0x2dcb2b:0x262,_0x2d1f48:0x2aa,_0x12284d:0x2dc,_0x133d01:0x250,_0x20457f:0x2c2,_0x478c1a:0x20a,_0x5cd40a:0x2f0,_0x18ae96:0x2a6,_0x205c47:0x26e,_0x4b25e3:0xd3,_0x5f56b0:0x1ce,_0x54f2c1:0x1bb,_0x22617a:0x18f,_0x2969ab:0x2fb,_0x41d4d8:0x332,_0x45c88d:0x2bd,_0x38142c:0x313,_0x39f262:0x25f,_0x33a18e:0x2ef,_0x3c3775:0x2b5,_0xf4f51c:0x2a9},_0x4bb8b5={_0x30e9c5:0x163},_0x65a119={_0xc58b8e:0x15};function _0x34ff15(_0x4cfe6e,_0x1cece9,_0x50c898,_0x37fad5){return _0x18d02e(_0x4cfe6e-_0x65a119._0xc58b8e,_0x4cfe6e,_0x37fad5- -0x17f,_0x37fad5-0x128);}function _0x12ebf9(_0x43eb12,_0x839a25,_0x412198,_0x4b26f8){return _0x18d02e(_0x43eb12-_0x4bb8b5._0x30e9c5,_0x43eb12,_0x4b26f8- -0x4b,_0x4b26f8-0x99);}const _0xb1b531={'mniAa':_0x34ff15(0x188,0x195,0x160,0x18a)+'ate','HKqIw':_0x34ff15(0x122,_0x1a7275._0x20ceb3,_0x1a7275._0x6ec6ba,_0x1a7275._0x2e13cf),'HWlIJ':function(_0x572f64,_0x58d829){return _0x572f64===_0x58d829;}};try{const _0x4bb375=_0x526a6b[_0x12ebf9(0x2ab,0x2f8,_0x1a7275._0x99dfe8,_0x1a7275._0x2dba75)](_0x3c2c36[_0x12ebf9(0x271,_0x1a7275._0xd14a6c,0x261,_0x1a7275._0x42b079)](),_0xb1b531[_0x12ebf9(_0x1a7275._0x1b5128,_0x1a7275._0xbc12b6,_0x1a7275._0x22bee2,0x254)],_0x34ff15(0x18b,0xa7,_0x1a7275._0x274af2,0x127)+_0x12ebf9(_0x1a7275._0x1f83a5,_0x1a7275._0x310f97,_0x1a7275._0x2dcb2b,_0x1a7275._0x2d1f48)+_0x12ebf9(_0x1a7275._0x12284d,_0x1a7275._0x133d01,_0x1a7275._0x20457f,0x25e));if(_0x43f9b3[_0x12ebf9(_0x1a7275._0x478c1a,_0x1a7275._0x5cd40a,_0x1a7275._0x18ae96,_0x1a7275._0x205c47)+'nc'](_0x4bb375)){const _0x1c42d3=_0x43f9b3[_0x34ff15(0x197,_0x1a7275._0x4b25e3,_0x1a7275._0x5f56b0,0x157)+_0x34ff15(0x215,_0x1a7275._0x54f2c1,0x1a7,_0x1a7275._0x22617a)](_0x4bb375,_0xb1b531[_0x34ff15(0xfc,0x107,0x10f,0x16f)]),_0x287d73=JSON['parse'](_0x1c42d3);_0x287d73&&_0xb1b531['HWlIJ'](typeof _0x287d73[_0x12ebf9(_0x1a7275._0x2969ab,0x2cc,_0x1a7275._0x41d4d8,_0x1a7275._0x45c88d)+_0x12ebf9(0x260,0x29d,0x2fe,0x2a9)],_0x12ebf9(0x208,0x18a,0x230,0x200))&&(this[_0x12ebf9(0x32c,_0x1a7275._0x38142c,_0x1a7275._0x39f262,0x2bd)+_0x12ebf9(0x2d3,0x31a,_0x1a7275._0x38142c,0x2a9)]=_0x287d73['lastUpda'+_0x12ebf9(0x31a,_0x1a7275._0x33a18e,_0x1a7275._0x3c3775,_0x1a7275._0xf4f51c)]);}}catch{}}[_0x33ed24(-0x87,-0x12d,-0xf0,-0x97)+_0x18d02e(0x2ed,0x308,0x318,0x398)](_0x8b575b){const _0x262b98={_0xb1a43c:0x1d9,_0x3f7607:0x1d4,_0x34277f:0x2cb,_0x9a1686:0x2a7,_0x5f1453:0x25d,_0x3dfa59:0x253,_0x171d62:0x28d,_0x1072bd:0x189,_0x13137e:0x26c,_0x31c444:0x2d9,_0x3a4ca8:0x2ab,_0x3b0088:0x2c0,_0x120d29:0x269,_0x3f2313:0x2d7,_0x5bd0b3:0x1d4,_0x45f5f4:0x28b,_0x244e15:0x272,_0x3b702a:0x283,_0x4571fc:0x1c5,_0x50c158:0x1eb,_0x4ab9f5:0x227,_0x3dfd1f:0x20d,_0x4155d6:0x293,_0x197946:0x212,_0x2a05da:0x144,_0x98de20:0x19b,_0x56d59c:0x22f,_0x166f81:0x1c7,_0x410a7b:0x2bd,_0x30625f:0x279,_0x2c020f:0x299,_0x3b0576:0x285},_0x2bf7b4={_0x34b76e:0x184,_0x572092:0x165},_0x592d44={_0x4e7b7e:0x4d3};function _0x72aa8d(_0x4c7f15,_0x14d03f,_0xff7013,_0x35a2ce){return _0x18d02e(_0x4c7f15-0x1a2,_0x14d03f,_0xff7013- -_0x592d44._0x4e7b7e,_0x35a2ce-0xa7);}const _0x5d15b7={'dwSLL':_0x72aa8d(-_0x262b98._0xb1a43c,-0x204,-0x22d,-0x270)+'_offset.'+_0x590827(0x24b,_0x262b98._0x3f7607,_0x262b98._0x34277f,_0x262b98._0x9a1686),'PBbUz':_0x72aa8d(-_0x262b98._0x5f1453,-_0x262b98._0x3dfa59,-_0x262b98._0x171d62,-0x2a2)};function _0x590827(_0x590c35,_0x3232dc,_0x241c3c,_0x390f5b){return _0x18d02e(_0x590c35-_0x2bf7b4._0x34b76e,_0x3232dc,_0x590c35- -0x5e,_0x390f5b-_0x2bf7b4._0x572092);}try{const _0x1eb103=_0x526a6b[_0x72aa8d(-0x1cd,-0x16a,-0x19b,-_0x262b98._0x1072bd)](_0x3c2c36[_0x590827(_0x262b98._0x13137e,0x234,0x28e,_0x262b98._0x31c444)](),_0x590827(_0x262b98._0x3a4ca8,_0x262b98._0x34277f,0x2e3,_0x262b98._0x3b0088)+_0x72aa8d(-_0x262b98._0x120d29,-_0x262b98._0x3f2313,-0x29e,-0x317));if(!_0x43f9b3[_0x72aa8d(-_0x262b98._0x5bd0b3,-_0x262b98._0x45f5f4,-0x21a,-_0x262b98._0x120d29)+'nc'](_0x1eb103))_0x43f9b3[_0x590827(0x204,_0x262b98._0x244e15,_0x262b98._0x3b702a,_0x262b98._0x4571fc)+'c'](_0x1eb103,{'recursive':!![]});_0x43f9b3[_0x72aa8d(-_0x262b98._0x50c158,-_0x262b98._0x4ab9f5,-0x1e6,-0x1bf)+_0x590827(_0x262b98._0x3dfd1f,0x1ca,_0x262b98._0x4155d6,_0x262b98._0x197946)](_0x526a6b[_0x72aa8d(-0x1d4,-_0x262b98._0x2a05da,-_0x262b98._0x98de20,-0x177)](_0x1eb103,_0x5d15b7[_0x590827(_0x262b98._0x56d59c,_0x262b98._0x166f81,0x273,0x1c3)]),JSON[_0x72aa8d(-0x234,-_0x262b98._0x410a7b,-_0x262b98._0x30625f,-0x26a)+'y']({'lastUpdateId':_0x8b575b}),_0x5d15b7[_0x72aa8d(-0x2b7,-_0x262b98._0x2c020f,-0x251,-_0x262b98._0x3b0576)]);}catch{}}[_0x33ed24(-0xd,-0x28,-0x76,-0x13)+_0x18d02e(0x2fc,0x2f9,0x30b,0x2a9)](_0x6f08a1){const _0x362ed9={_0xcbb3cf:0x153,_0x7d5bc6:0xdf},_0xa5ded2={_0x104ace:0x1dc,_0x18adc0:0x1a5};function _0x21445e(_0x2a3a52,_0x5e2521,_0x41e5f5,_0x3bebec){return _0x18d02e(_0x2a3a52-_0xa5ded2._0x104ace,_0x3bebec,_0x2a3a52- -0x3c2,_0x3bebec-_0xa5ded2._0x18adc0);}this[_0x21445e(-0x104,-0x181,-_0x362ed9._0xcbb3cf,-_0x362ed9._0x7d5bc6)]=_0x6f08a1;}['getToken'](){const _0xff6ccf={_0x2e2a64:0x7,_0x30d4ee:0x4,_0x1f86a4:0x36},_0x54e62a={_0x357c65:0xcf};function _0x39367d(_0x3b507b,_0x210c1f,_0x5b4377,_0x59a8a2){return _0x18d02e(_0x3b507b-0x11c,_0x3b507b,_0x59a8a2- -0x2f4,_0x59a8a2-_0x54e62a._0x357c65);}return this[_0x39367d(-0x3e,_0xff6ccf._0x2e2a64,-_0xff6ccf._0x30d4ee,-_0xff6ccf._0x1f86a4)];}[_0x18d02e(0x232,0x2e5,0x29d,0x2d1)+_0x33ed24(-0x50,-0x13a,-0xb5,-0x12e)](_0x5be621,_0x45c194=0x918*-0x1+-0x257c+0xf8d*0x4){const _0xb9abe={_0x28f010:0x13a,_0x2970ea:0x55,_0x49443a:0x74,_0x90bd2f:0x80,_0x45c202:0xe5,_0x54150a:0xff,_0x19fa66:0xea,_0x40829d:0x30,_0x12df9b:0x5d,_0x551268:0x43,_0x58bbeb:0xe3,_0x99e876:0x104,_0x5b1f38:0xd2,_0x54b980:0x8f,_0x2ad880:0xde,_0x123768:0x9e,_0x51faa0:0xe6,_0x5c4f2c:0x79,_0x12d08e:0x35,_0x63d31c:0x78,_0x5a3e94:0xa3,_0x488d18:0xad,_0x475bae:0x146,_0x45aa09:0xf3,_0x19b712:0x27,_0x2a2a91:0x33,_0x53ab32:0x20,_0x2d8a76:0x41,_0x56ffb0:0xaa,_0x53a8de:0x1a,_0x8ff36b:0x19,_0x37d471:0x18,_0x1e2222:0x4e,_0x57379d:0x26,_0xafd7fa:0x4c,_0x192c49:0x85,_0x176b3d:0x64,_0xb849a2:0x64,_0x384050:0xef,_0x1a83f8:0x11,_0x1b88ed:0x43,_0x31234e:0xca,_0x128529:0xc,_0x221954:0x8f,_0x2330cb:0x95,_0x490660:0x1c,_0x111402:0x50,_0x2fec25:0x33,_0x30f69d:0x9c,_0x349ddc:0x3c,_0x5716db:0x43,_0x1b6243:0x2e,_0x54917b:0x1b,_0x384308:0xc1,_0x3361a0:0x65,_0x5395ea:0x48,_0x4f5992:0x34,_0x12c846:0x191,_0x5d9adb:0x116},_0x27d48f={_0x21332e:0x45,_0x25bb7a:0x1b8},_0x2d4302={'fDuoz':function(_0x24812c,_0x18445e){return _0x24812c<=_0x18445e;},'VpaNE':function(_0x49eaf1,_0x36e5e4){return _0x49eaf1!==_0x36e5e4;},'XlVVs':_0x4c7fec(-0x12d,-0x123,-_0xb9abe._0x28f010,-0xce),'yLRST':function(_0x5616c5,_0x284cef){return _0x5616c5===_0x284cef;},'gsbOm':function(_0x387b55,_0x2626ec){return _0x387b55<_0x2626ec;},'ITtzL':function(_0x30b860,_0x3da8dd){return _0x30b860*_0x3da8dd;},'Saqse':function(_0x462b76,_0x14037e){return _0x462b76<_0x14037e;},'VwkMJ':function(_0x433bf7,_0x108ab6){return _0x433bf7<_0x108ab6;}};if(_0x2d4302[_0x4c7fec(-_0xb9abe._0x2970ea,0x2c,-_0xb9abe._0x49443a,-0x29)](_0x5be621[_0x4c7fec(-_0xb9abe._0x90bd2f,-_0xb9abe._0x45c202,-_0xb9abe._0x54150a,-0xf3)],_0x45c194))return[_0x5be621];function _0x4c7fec(_0x4bdf97,_0xa8e4bb,_0x22876e,_0x535cac){return _0x33ed24(_0x4bdf97-0x1af,_0x4bdf97,_0x535cac-_0x27d48f._0x21332e,_0x535cac-_0x27d48f._0x25bb7a);}const _0x4af6d0=[];let _0x472d6e=_0x5be621;while(_0x472d6e[_0x509562(-_0xb9abe._0x19fa66,-_0xb9abe._0x40829d,-0xa5,-0x120)]>-0x158e*-0x1+0x235e+-0x38ec){if(_0x2d4302[_0x509562(_0xb9abe._0x12df9b,0x20,0x40,-_0xb9abe._0x551268)](_0x2d4302[_0x4c7fec(-0x76,-_0xb9abe._0x58bbeb,-0x137,-0xde)],_0x2d4302[_0x4c7fec(-_0xb9abe._0x99e876,-_0xb9abe._0x5b1f38,-_0xb9abe._0x54b980,-_0xb9abe._0x2ad880)]))_0x3f8007[_0x4c7fec(-0x4a,-_0xb9abe._0x123768,-_0xb9abe._0x51faa0,-0xa3)+_0x4c7fec(-0xbe,-0x38,-_0xb9abe._0x5c4f2c,-0x5c)]=_0x377bf6[_0x4c7fec(-0xa7,-_0xb9abe._0x12d08e,-_0xb9abe._0x63d31c,-_0xb9abe._0x5a3e94)+_0x509562(0x4f,-0x22,-0xe,-0x45)];else{if(_0x472d6e[_0x4c7fec(-0x7f,-_0xb9abe._0x488d18,-_0xb9abe._0x475bae,-_0xb9abe._0x45aa09)]<=_0x45c194){_0x4af6d0[_0x4c7fec(-_0xb9abe._0x19b712,0x58,-_0xb9abe._0x2a2a91,-_0xb9abe._0x53ab32)](_0x472d6e);break;}let _0x3ee7cf=_0x472d6e[_0x509562(-0x6b,-0x82,-_0xb9abe._0x2d8a76,-_0xb9abe._0x56ffb0)+'xOf']('\x0a\x0a',_0x45c194);(_0x2d4302[_0x509562(-_0xb9abe._0x53a8de,_0xb9abe._0x8ff36b,0x34,-_0xb9abe._0x37d471)](_0x3ee7cf,-(-0x169b+0x16c7+-0x2b))||_0x2d4302[_0x4c7fec(-0x4e,-0x36,_0xb9abe._0x1e2222,-_0xb9abe._0x57379d)](_0x3ee7cf,_0x2d4302[_0x4c7fec(-_0xb9abe._0xafd7fa,-_0xb9abe._0x192c49,-0xd5,-0x91)](_0x45c194,0x8c*0x12+-0x389+-0x64f+0.4)))&&(_0x3ee7cf=_0x472d6e[_0x4c7fec(-_0xb9abe._0x176b3d,-_0xb9abe._0xb849a2,-0xe6,-0x8f)+_0x4c7fec(-_0xb9abe._0x384050,-0x101,-0xe6,-0x86)]('\x0a',_0x45c194)),(_0x3ee7cf===-(0x1*0x6dc+0x28*-0x4f+0x57d)||_0x2d4302['Saqse'](_0x3ee7cf,_0x2d4302[_0x509562(-0x4c,_0xb9abe._0x1a83f8,-_0xb9abe._0x1b88ed,-_0xb9abe._0x31234e)](_0x45c194,-0x3*-0xbc3+-0x3f*0x6+0xb45*-0x3+0.4)))&&(_0x3ee7cf=_0x472d6e[_0x4c7fec(-0xa9,-0xb4,-_0xb9abe._0x128529,-_0xb9abe._0x221954)+_0x509562(-_0xb9abe._0x2330cb,_0xb9abe._0x490660,-0x38,0x13)]('\x20',_0x45c194)),(_0x2d4302['yLRST'](_0x3ee7cf,-(-0xea*0x15+0x212+0x1121))||_0x2d4302[_0x509562(-_0xb9abe._0x111402,0xb7,_0xb9abe._0x2fec25,_0xb9abe._0x30f69d)](_0x3ee7cf,_0x2d4302[_0x509562(-_0xb9abe._0x349ddc,-0x64,-_0xb9abe._0x5716db,-0x2e)](_0x45c194,-0x26b+0x2411+-0x21a6+0.4)))&&(_0x3ee7cf=_0x45c194),_0x4af6d0[_0x509562(0x32,-0x39,_0xb9abe._0x1b6243,-_0xb9abe._0x54917b)](_0x472d6e['substrin'+'g'](0x1c76*0x1+0x2048+-0x3cbe,_0x3ee7cf)[_0x509562(-_0xb9abe._0x384308,-0xc1,-0xc8,-0x129)]()),_0x472d6e=_0x472d6e[_0x509562(_0xb9abe._0x3361a0,_0xb9abe._0x5395ea,-0x4,_0xb9abe._0x4f5992)+'g'](_0x3ee7cf)[_0x4c7fec(-0x16f,-0x114,-_0xb9abe._0x12c846,-_0xb9abe._0x5d9adb)]();}}function _0x509562(_0x1960b2,_0x34e41c,_0x390f73,_0x1aa823){return _0x33ed24(_0x1960b2-0x1a,_0x1960b2,_0x390f73-0x93,_0x1aa823-0x146);}return _0x4af6d0;}async[_0x33ed24(-0xcf,-0xf9,-0x137,-0xdf)+_0x18d02e(0x33d,0x28c,0x2ce,0x330)](_0x48af40,_0x321992=_0x18d02e(0x203,0x295,0x281,0x20f)){const _0x185f3f={_0x7f2ef7:0x376,_0x274612:0x35e,_0x4e2c38:0x9e,_0x54d4c1:0x385,_0x5b1d0b:0x320,_0x217de3:0x37d,_0x3fc1fb:0xe4,_0x48e8d5:0x7,_0x2d1a46:0x58,_0x495cc9:0xb5,_0x470360:0x11f,_0x32e89e:0xc5,_0x36aed8:0xdd,_0x4e59b8:0x100,_0x2a88ab:0xf2,_0x3da9b7:0x139,_0x4ad3c9:0x31e,_0x5ef493:0x379,_0x1424f4:0x345,_0x13a8cb:0x330,_0x16873e:0x6a,_0x15cb03:0x3c,_0x9cfde5:0x13a,_0xc0bf41:0x2f,_0x252a25:0xc1,_0x286bf8:0xd9,_0x1fe02f:0x2a8,_0x582e95:0x29f,_0x593c32:0xa,_0x22ae0f:0x3a,_0x26a697:0x2af,_0x10e462:0x27f,_0xaaf510:0x2a2},_0x182db0={_0x5b4154:0x11},_0x3a025f={_0x334972:0x106},_0x47abe1={'wPIpA':function(_0x1b2508,_0x110977){return _0x1b2508===_0x110977;},'YMKYT':_0x50bf08(0x3c8,_0x185f3f._0x7f2ef7,_0x185f3f._0x274612,0x324),'nleYv':function(_0x5dbc75,_0x141c43,_0x58b91a){return _0x5dbc75(_0x141c43,_0x58b91a);},'HbETZ':_0x2e75e2(-0x7c,-0xa7,-0xea,-_0x185f3f._0x4e2c38)+_0x50bf08(_0x185f3f._0x54d4c1,_0x185f3f._0x5b1d0b,_0x185f3f._0x217de3,_0x185f3f._0x274612)};if(!this[_0x2e75e2(-0xeb,-_0x185f3f._0x3fc1fb,-0x75,-_0x185f3f._0x48e8d5)])return;function _0x2e75e2(_0x574d16,_0x256d93,_0x211b24,_0x50713b){return _0x18d02e(_0x574d16-0x166,_0x256d93,_0x211b24- -0x333,_0x50713b-_0x3a025f._0x334972);}function _0x50bf08(_0xc334dc,_0x26dbfc,_0x49bd1a,_0x10af0c){return _0x18d02e(_0xc334dc-_0x182db0._0x5b4154,_0xc334dc,_0x26dbfc-0x49,_0x10af0c-0x1e1);}try{_0x47abe1['wPIpA'](_0x47abe1[_0x2e75e2(-_0x185f3f._0x2d1a46,-_0x185f3f._0x495cc9,-0xc5,-0xe2)],_0x47abe1[_0x2e75e2(-0xbf,-_0x185f3f._0x470360,-_0x185f3f._0x32e89e,-_0x185f3f._0x36aed8)])?await _0x47abe1[_0x2e75e2(-0x125,-_0x185f3f._0x4e59b8,-_0x185f3f._0x2a88ab,-_0x185f3f._0x3da9b7)](fetch,'https://'+_0x50bf08(_0x185f3f._0x4ad3c9,_0x185f3f._0x5ef493,0x2f8,0x377)+_0x50bf08(0x3b3,0x375,_0x185f3f._0x1424f4,_0x185f3f._0x13a8cb)+'/bot'+this['botToken']+(_0x2e75e2(-0x1e,-_0x185f3f._0x16873e,-0x11,0x54)+_0x2e75e2(-_0x185f3f._0x15cb03,-0x5a,-_0x185f3f._0x4e2c38,-0xf9)),{'method':_0x2e75e2(-0xd3,-_0x185f3f._0x9cfde5,-0xba,-0x3a),'headers':{'Content-Type':_0x47abe1[_0x2e75e2(-0xa3,-_0x185f3f._0xc0bf41,-0x40,-_0x185f3f._0x252a25)]},'body':JSON[_0x2e75e2(-0x148,-0x71,-_0x185f3f._0x286bf8,-0x11f)+'y']({'chat_id':_0x48af40,'action':_0x321992})}):(_0x4a01c2[_0x50bf08(_0x185f3f._0x1fe02f,_0x185f3f._0x582e95,0x234,0x2e8)](_0x2e75e2(_0x185f3f._0x593c32,-0x7b,-_0x185f3f._0x22ae0f,-0x20),_0x3c8989),_0x41fc85['append'](_0x50bf08(_0x185f3f._0x26a697,0x2a2,0x2d6,_0x185f3f._0x10e462)+'de',_0xb1ffeb?.[_0x50bf08(0x282,_0x185f3f._0xaaf510,0x31c,0x226)+'de']||'Markdown'));}catch{}}async[_0x33ed24(-0xcf,-0x191,-0x130,-0x17b)+_0x18d02e(0x2f0,0x280,0x2d5,0x344)](_0x478067,_0x27ce4c,_0x1cd4c4){const _0x39f001={_0x137648:0x538,_0x2326da:0x54c,_0xbefe7:0x4e0,_0x828c7b:0x4ee,_0x18c1f6:0x4b4,_0x523ace:0x4ec,_0x3b56fc:0x595,_0x2be354:0x592,_0x22dab3:0x527,_0x1de7d9:0x4ac,_0x520c17:0x529,_0x45a646:0x52,_0x1ee1a6:0x503,_0x547239:0x553,_0x500d5a:0x589,_0x1903c2:0x535,_0x4bdcc4:0x532,_0x32dfbc:0x4bc,_0x5ebb32:0x4ff,_0x1ab6e5:0x1d,_0x2856f6:0x8,_0x5e13e9:0x507,_0x469664:0x521,_0x3bc1a4:0x5,_0x127068:0x74,_0x34cb0c:0x88,_0x58a410:0x104,_0x8c8823:0x537,_0x4ec748:0x519,_0x168d78:0x14,_0x4cfee2:0x35,_0x3d5dd0:0x35,_0x36bf39:0x50,_0x1e4f34:0x109,_0x254d86:0x55,_0x534c30:0x5ad,_0x575348:0x5a3,_0x4ab719:0x5d2,_0x3dd0a7:0x4e4,_0x47ce9c:0x46d,_0x317099:0x548,_0xa80652:0x4f2,_0x450344:0x1a,_0x22e9dd:0x6c,_0x434156:0x67,_0x4bc165:0x541,_0x5b8ffa:0x33,_0x504bf3:0x45,_0x53cbeb:0x10,_0x4d9575:0x587,_0x4c811e:0x11b,_0x23af73:0xe6,_0x150dbe:0x13,_0x1d9eb7:0x572,_0x41ddaf:0x4fa,_0x3667e3:0x21,_0x5f0e51:0x513,_0x27b776:0x477,_0x494de6:0x4f6,_0x1a1dd9:0xd9,_0x31440e:0x105,_0x4c9fa9:0x72,_0x27b2c7:0x25,_0x3178ea:0x4d,_0x42d8a4:0x54a,_0x5f53da:0x55a,_0x33f0f7:0x52b,_0xe0b18e:0x4d8,_0x5e6508:0x0,_0x4b8ddb:0x47,_0x400e7a:0x42,_0x45aefc:0x62,_0x2cfebd:0x505,_0x5de42f:0x4f6,_0x511dba:0x97,_0x36420c:0xcb,_0x25be40:0x4ab,_0x286c43:0x634,_0xf3fa6e:0x648,_0x5be92f:0x5c5,_0x1a8138:0x5f0,_0x368705:0x63b,_0x3e62bc:0x5e2,_0xc268b8:0x49c,_0x33b7a3:0x4e8,_0x1827e5:0x5b9,_0x437345:0x553,_0x4dffe9:0xa7,_0x529aa0:0x12,_0x4a2abe:0x36,_0x496a3e:0x6,_0x4a44f2:0x3c,_0xa2a685:0x4bd,_0x1e4f3b:0x4b2,_0x26c284:0x4f2,_0x120b90:0x4b6,_0x7cd163:0x613,_0x34c371:0x63e,_0x5806d7:0x4c7,_0x212df6:0x5b4,_0x14a7b5:0xaf,_0x41456e:0x12b,_0x958d50:0xc2,_0x55c2d6:0x106,_0x34f52c:0x22,_0x49ca51:0x79,_0x56113a:0x18,_0xfd55ad:0x10,_0x47b8cd:0x540},_0x1acfad={_0x261f93:0x117},_0x291d69={_0x29a04f:0x11b,_0xbac3fe:0x171},_0x371164={'tCXEu':'caption','oObil':_0x40d6e0(_0x39f001._0x137648,_0x39f001._0x2326da,_0x39f001._0xbefe7,_0x39f001._0x828c7b)+'de','gWhFX':_0x40d6e0(_0x39f001._0x18c1f6,0x474,_0x39f001._0x523ace,0x4ed),'UxiiH':function(_0x3095fe,_0x1204bb){return _0x3095fe<_0x1204bb;},'tUvnX':'JutRp','huWhz':function(_0x428bb5,_0x393dee){return _0x428bb5===_0x393dee;},'whspd':function(_0x5618f8,_0x3ae3db){return _0x5618f8-_0x3ae3db;},'eWscW':_0x40d6e0(0x559,_0x39f001._0x3b56fc,_0x39f001._0x2be354,_0x39f001._0x22dab3),'bewBR':_0x40d6e0(_0x39f001._0x1de7d9,0x569,0x5a6,_0x39f001._0x520c17),'wCVHO':function(_0x13b62b,_0x40616e,_0x3d9a8f){return _0x13b62b(_0x40616e,_0x3d9a8f);},'EHoXH':_0x103495(0x1,-0x5f,0x3c,-_0x39f001._0x45a646),'Mckmi':_0x103495(-0x2f,0x59,-0x89,-0x6)+'ion/json','DISlx':function(_0x47b63e,_0x3ef45b){return _0x47b63e!==_0x3ef45b;},'rtJwM':function(_0x37805c,_0x2464cf){return _0x37805c-_0x2464cf;},'IaWzZ':function(_0xcf2f36,_0x4fbd1f){return _0xcf2f36!==_0x4fbd1f;},'UpJEh':'xkloC'};function _0x103495(_0x3765b9,_0x24f71f,_0x5bdfc5,_0xdbfd74){return _0x33ed24(_0x3765b9-0x7c,_0xdbfd74,_0x3765b9-_0x291d69._0x29a04f,_0xdbfd74-_0x291d69._0xbac3fe);}if(!this[_0x40d6e0(_0x39f001._0x1ee1a6,0x5ac,0x528,_0x39f001._0x547239)])return![];const _0x4e5532=this[_0x40d6e0(_0x39f001._0x500d5a,0x4c0,_0x39f001._0x1903c2,_0x39f001._0x4bdcc4)+'sage'](_0x27ce4c,-0x2532+0x1*-0x95f+0x3e31);let _0x1628d7=!![];function _0x40d6e0(_0x1ba5bc,_0x315fe0,_0xd65a73,_0xfff945){return _0x33ed24(_0x1ba5bc-0x1ed,_0xd65a73,_0xfff945-0x628,_0xfff945-_0x1acfad._0x261f93);}for(let _0x40f639=-0x31*-0x52+-0x165b*0x1+0x6a9;_0x371164[_0x40d6e0(_0x39f001._0x32dfbc,_0x39f001._0x5ebb32,0x51e,0x528)](_0x40f639,_0x4e5532[_0x103495(-_0x39f001._0x1ab6e5,-0x12,0x5b,_0x39f001._0x2856f6)]);_0x40f639++){if(_0x371164['tUvnX']!==_0x371164[_0x40d6e0(0x51a,0x504,_0x39f001._0x5e13e9,0x567)])this[_0x40d6e0(0x49d,0x4cc,0x583,_0x39f001._0x469664)+_0x103495(_0x39f001._0x3bc1a4,0x8d,-0xf,-_0x39f001._0x127068)+_0x103495(_0x39f001._0x34cb0c,0xa8,0xda,_0x39f001._0x58a410)][_0x40d6e0(_0x39f001._0x8c8823,_0x39f001._0x4ec748,_0x39f001._0x500d5a,0x59a)](),this[_0x103495(_0x39f001._0x168d78,_0x39f001._0x4cfee2,0x8,_0x39f001._0x168d78)+_0x103495(0x5,-0x4e,-_0x39f001._0x3d5dd0,-0x64)+_0x103495(0x88,_0x39f001._0x36bf39,_0x39f001._0x1e4f34,_0x39f001._0x254d86)]=null;else{const _0x21a1a7=_0x4e5532[_0x40f639],_0x632c38=_0x371164[_0x40d6e0(0x61e,_0x39f001._0x534c30,_0x39f001._0x575348,_0x39f001._0x4ab719)](_0x40f639,_0x371164['whspd'](_0x4e5532[_0x40d6e0(0x499,_0x39f001._0x3dd0a7,0x4e2,0x4f0)],0x2b8+0x14d4*-0x1+0x121d)),_0x312233={'chat_id':_0x478067,'text':_0x21a1a7,'parse_mode':_0x1cd4c4?.[_0x40d6e0(0x4c5,_0x39f001._0x47ce9c,_0x39f001._0x317099,_0x39f001._0xa80652)+'e']===_0x371164[_0x103495(0x6c,_0x39f001._0x450344,_0x39f001._0x22e9dd,0xd6)]?undefined:_0x371164[_0x103495(0x80,_0x39f001._0x434156,0x12,0x100)]};_0x632c38&&_0x1cd4c4?.['reply_ma'+_0x40d6e0(_0x39f001._0x4bc165,0x51e,0x5f3,0x587)]&&(_0x312233['reply_ma'+_0x103495(0x7a,0x98,0x8e,0x8d)]=_0x1cd4c4[_0x103495(_0x39f001._0x5b8ffa,0x80,_0x39f001._0x504bf3,_0x39f001._0x53cbeb)+_0x40d6e0(0x545,0x52d,0x514,_0x39f001._0x4d9575)]);try{if(_0x371164[_0x103495(0xc5,_0x39f001._0x4c811e,0x47,_0x39f001._0x23af73)](_0x371164[_0x103495(-_0x39f001._0x150dbe,_0x39f001._0x254d86,-0x3d,-0x69)],_0x371164[_0x40d6e0(0x4d7,0x4a7,_0x39f001._0x1d9eb7,_0x39f001._0x41ddaf)])){const _0xca8f60=await _0x371164[_0x103495(-_0x39f001._0x3667e3,0x4,-0x46,-0x49)](fetch,_0x40d6e0(0x4e2,_0x39f001._0x5f0e51,_0x39f001._0x27b776,_0x39f001._0x494de6)+_0x103495(0xb8,_0x39f001._0x1a1dd9,_0x39f001._0x31440e,_0x39f001._0x4c9fa9)+_0x40d6e0(0x554,0x619,0x556,0x5c1)+_0x103495(-_0x39f001._0x27b2c7,_0x39f001._0x3178ea,-0x45,0x62)+this[_0x103495(0x46,0xe,0x5d,-0x14)]+(_0x40d6e0(_0x39f001._0x42d8a4,_0x39f001._0x5f53da,_0x39f001._0x33f0f7,_0x39f001._0xe0b18e)+_0x103495(0x66,0x6a,0x3b,0x24)),{'method':_0x371164[_0x103495(_0x39f001._0x5e6508,_0x39f001._0x4b8ddb,-_0x39f001._0x400e7a,-_0x39f001._0x45aefc)],'headers':{'Content-Type':_0x371164['Mckmi']},'body':JSON[_0x40d6e0(_0x39f001._0x2cfebd,0x535,_0x39f001._0x5de42f,0x4ef)+'y'](_0x312233)});if(!_0xca8f60['ok']&&_0x371164[_0x103495(_0x39f001._0x511dba,_0x39f001._0x36420c,0x6e,0x47)](_0x1cd4c4?.['parseMod'+'e'],_0x371164['eWscW'])){delete _0x312233[_0x40d6e0(_0x39f001._0x5ebb32,0x55a,_0x39f001._0x25be40,_0x39f001._0x828c7b)+'de'];const _0x164823=await fetch(_0x40d6e0(0x491,0x55e,0x50e,0x4f6)+_0x40d6e0(_0x39f001._0x286c43,0x649,_0x39f001._0xf3fa6e,_0x39f001._0x5be92f)+_0x40d6e0(_0x39f001._0x1a8138,_0x39f001._0x368705,_0x39f001._0x3e62bc,0x5c1)+_0x40d6e0(0x564,0x519,_0x39f001._0xc268b8,_0x39f001._0x33b7a3)+this[_0x40d6e0(_0x39f001._0x1827e5,0x4e3,0x5aa,_0x39f001._0x437345)]+(_0x103495(-_0x39f001._0x4cfee2,0x41,-0xa8,0x44)+_0x103495(0x66,_0x39f001._0x4dffe9,_0x39f001._0x529aa0,0x9)),{'method':'POST','headers':{'Content-Type':_0x371164[_0x103495(_0x39f001._0x4a2abe,_0x39f001._0x496a3e,0x41,-_0x39f001._0x4a44f2)]},'body':JSON[_0x40d6e0(0x46a,_0x39f001._0xa2a685,0x4c4,0x4ef)+'y'](_0x312233)});if(!_0x164823['ok'])_0x1628d7=![];}else!_0xca8f60['ok']&&(_0x1628d7=![]);_0x371164[_0x40d6e0(_0x39f001._0x1e4f3b,_0x39f001._0x26c284,_0x39f001._0x120b90,0x528)](_0x40f639,_0x371164[_0x40d6e0(_0x39f001._0x7cd163,_0x39f001._0x34c371,0x61d,0x5d1)](_0x4e5532[_0x40d6e0(_0x39f001._0x5806d7,0x47d,0x571,0x4f0)],-0x5*-0x2de+-0x5f6+0x1*-0x85f))&&await new Promise(_0x18b7e2=>setTimeout(_0x18b7e2,-0x22f+0x275+0x32));}else _0x284fe4=![];}catch{_0x371164[_0x40d6e0(0x542,0x56d,_0x39f001._0x4d9575,_0x39f001._0x212df6)](_0x371164[_0x103495(0xb9,_0x39f001._0x14a7b5,0xa2,_0x39f001._0x41456e)],_0x371164[_0x103495(0xb9,0x107,_0x39f001._0x958d50,_0x39f001._0x55c2d6)])?(_0x5a1d94[_0x103495(-_0x39f001._0x34f52c,-_0x39f001._0x49ca51,-0x58,-0xd)](_0x371164['tCXEu'],_0x3a7913),_0x2519b1[_0x103495(-0x22,-_0x39f001._0x56113a,_0x39f001._0xfd55ad,0x8)](_0x371164[_0x40d6e0(0x53d,0x4eb,0x56f,0x55a)],_0x371164[_0x40d6e0(0x602,_0x39f001._0x47b8cd,0x5f7,0x58d)])):_0x1628d7=![];}}}return _0x1628d7;}async['editMess'+_0x18d02e(0x353,0x27f,0x2d5,0x2cb)](_0x29756f,_0xdd8ef7,_0x25cb9a,_0x1c711a){const _0x47feb8={_0x207b1d:0x49,_0x3cb948:0x86,_0x331576:0x539,_0x14b0e7:0x510,_0x33530d:0x48b,_0xbd7bdb:0xcc,_0x455ef3:0xa4,_0x56189b:0x501,_0x3258c7:0x531,_0x3a31f9:0x5a5,_0x1849ff:0x4f7,_0x415e99:0x563,_0x28cd8c:0x5b9,_0x239ac0:0x1d,_0x63f5e7:0x6,_0x92c517:0x4e,_0x3537f0:0x5ca,_0x130118:0x95,_0x2b067c:0xcc,_0xeffe44:0xe6,_0x5e4c27:0x9a,_0xbe8dba:0xaf,_0x122335:0x578,_0x176829:0x5c4,_0x261fce:0x9f,_0x392e75:0x160,_0x14d0fb:0x8f,_0x127d4f:0x14c,_0x459403:0x2f,_0x49e9e6:0x2a,_0x19d96d:0x5cf,_0x23ea80:0x626,_0x42449e:0x5c0,_0x28237e:0x61a,_0x31f4c4:0xae,_0x4c1a0f:0x83,_0x22f09a:0xa4,_0x18d3e7:0xa9,_0x51f6a4:0x8e,_0x43ddaa:0xd7,_0x147189:0x58,_0xf6a1df:0x69,_0x49b350:0xa9,_0xce172a:0x10a,_0x40ca52:0x70,_0x2a6ab7:0x4e2,_0x14e114:0x56e,_0xa53531:0x572,_0x2e999d:0x62f,_0x221f05:0xa,_0x394500:0x3e,_0x477aec:0xc,_0x55b6de:0x32,_0x3adef8:0x45,_0x5b906e:0x4f,_0x15be39:0x11a,_0x1c0432:0x5a,_0x394d0b:0x2f,_0x437ff1:0x5d2,_0x828b97:0x11,_0x32bdbe:0x589,_0x5e7a98:0x59d,_0x299a23:0x14,_0x505339:0x2e,_0x3b4a63:0x86,_0xef4675:0x593,_0x2459be:0x5e4,_0x490d56:0x61f,_0x24a2ff:0xb6,_0x1fd504:0x10c,_0x42fc85:0x73,_0x451856:0x524,_0x55e801:0x531,_0x5ee8ef:0x4d6,_0x30461b:0x0,_0x2d4a1e:0x533,_0x2cb604:0x5db,_0xc060dd:0x4d9,_0x489bfb:0x4a9,_0x3e6f55:0xda,_0x521de4:0xe5,_0x7b21f:0x532,_0x61342e:0x512,_0x36fb71:0x601},_0x414d9c={_0x5a2e3b:0x14a,_0x5dd87d:0xa7},_0xa3de41={_0xa47882:0x2a,_0xbd1ffa:0xa8};function _0x4783f3(_0x27a95a,_0x1d1a80,_0x379f02,_0x265d83){return _0x33ed24(_0x27a95a-_0xa3de41._0xa47882,_0x265d83,_0x1d1a80-0x64b,_0x265d83-_0xa3de41._0xbd1ffa);}const _0x277d3d={'DaZgt':function(_0x348a1b,_0x26d22b){return _0x348a1b===_0x26d22b;},'Hbjuh':_0x3eeef0(_0x47feb8._0x207b1d,_0x47feb8._0x3cb948,-0x1a,0x92),'OkkuG':_0x4783f3(_0x47feb8._0x331576,_0x47feb8._0x14b0e7,_0x47feb8._0x33530d,0x4e5),'IBecV':_0x3eeef0(0x4f,_0x47feb8._0xbd7bdb,-0x28,_0x47feb8._0x455ef3),'Blvpb':_0x4783f3(0x644,0x5be,0x63f,0x5b0),'hUdzd':function(_0x3764ca,_0x3d317e,_0x16f653){return _0x3764ca(_0x3d317e,_0x16f653);},'vAZal':_0x4783f3(_0x47feb8._0x56189b,_0x47feb8._0x3258c7,0x51f,_0x47feb8._0x3a31f9),'ZWaHW':_0x4783f3(0x547,0x501,0x544,_0x47feb8._0x1849ff)+_0x4783f3(0x519,0x58f,_0x47feb8._0x415e99,_0x47feb8._0x28cd8c),'OBVpy':function(_0x4b064d,_0x19219f){return _0x4b064d!==_0x19219f;},'EnUZL':function(_0xa71670,_0x4d1f06,_0xd3274){return _0xa71670(_0x4d1f06,_0xd3274);},'xeOZg':function(_0x351d32,_0x5a7b8e){return _0x351d32>_0x5a7b8e;},'fsSJA':_0x3eeef0(_0x47feb8._0x239ac0,0x96,-0x10,-_0x47feb8._0x239ac0),'rEnUJ':_0x3eeef0(_0x47feb8._0x63f5e7,0x38,_0x47feb8._0x92c517,0x4a)};if(!this['botToken'])return![];function _0x3eeef0(_0x3528bd,_0x42b0f1,_0x511558,_0x7928e4){return _0x33ed24(_0x3528bd-0x7,_0x511558,_0x3528bd-_0x414d9c._0x5a2e3b,_0x7928e4-_0x414d9c._0x5dd87d);}const _0x6b8210=this[_0x4783f3(_0x47feb8._0x3537f0,0x555,0x53a,0x518)+_0x3eeef0(_0x47feb8._0x130118,0x2c,0x7e,_0x47feb8._0x2b067c)](_0x25cb9a,-0x1998+0x1*-0x2a5+0x2bdd),_0x4b6371=_0x6b8210[-0x1*0x1b23+0x12d6+0x84d]||_0x25cb9a;try{const _0x3213a7={'chat_id':_0x29756f,'message_id':_0xdd8ef7,'text':_0x4b6371,'parse_mode':_0x277d3d[_0x3eeef0(_0x47feb8._0xeffe44,_0x47feb8._0x5e4c27,0x11a,_0x47feb8._0xbe8dba)](_0x1c711a?.['parseMod'+'e'],_0x277d3d['Hbjuh'])?undefined:_0x277d3d[_0x4783f3(0x505,_0x47feb8._0x122335,0x527,_0x47feb8._0x176829)]};_0x1c711a?.[_0x3eeef0(0x62,0x82,0x20,-0x12)+_0x3eeef0(0xa9,_0x47feb8._0x261fce,0xcc,0x130)]&&(_0x277d3d[_0x3eeef0(_0x47feb8._0xeffe44,_0x47feb8._0x392e75,_0x47feb8._0x14d0fb,_0x47feb8._0x127d4f)](_0x277d3d[_0x3eeef0(0x42,_0x47feb8._0x459403,-_0x47feb8._0x49e9e6,0x86)],_0x277d3d[_0x4783f3(0x5d3,_0x47feb8._0x19d96d,_0x47feb8._0x23ea80,0x59d)])?this[_0x4783f3(0x594,_0x47feb8._0x42449e,_0x47feb8._0x28237e,0x542)+_0x4783f3(_0x47feb8._0x122335,0x5ac,0x5b9,0x5ed)]=_0x176087[_0x3eeef0(0xbf,_0x47feb8._0x31f4c4,_0x47feb8._0x4c1a0f,0x89)+'teId']:_0x3213a7[_0x3eeef0(0x62,_0x47feb8._0x22f09a,_0x47feb8._0x49e9e6,0x1c)+_0x3eeef0(_0x47feb8._0x18d3e7,_0x47feb8._0x51f6a4,_0x47feb8._0x43ddaa,_0x47feb8._0x147189)]=_0x1c711a[_0x3eeef0(0x62,_0x47feb8._0xf6a1df,0x2a,0x3)+_0x3eeef0(_0x47feb8._0x49b350,0x75,_0x47feb8._0xce172a,0x23)]);const _0x3fa4ea=await _0x277d3d[_0x3eeef0(0x8,-0x5f,-_0x47feb8._0x40ca52,0x8e)](fetch,_0x4783f3(0x552,0x519,_0x47feb8._0x2a6ab7,0x52a)+_0x4783f3(0x5e5,0x5e8,0x5bc,_0x47feb8._0x14e114)+_0x4783f3(_0x47feb8._0xa53531,0x5e4,0x5ce,_0x47feb8._0x2e999d)+_0x3eeef0(_0x47feb8._0x221f05,-_0x47feb8._0x394500,_0x47feb8._0x477aec,_0x47feb8._0x55b6de)+this[_0x3eeef0(0x75,_0x47feb8._0x3adef8,_0x47feb8._0x5b906e,0x4d)]+(_0x3eeef0(0xc1,_0x47feb8._0x15be39,0xae,0x144)+'sageText'),{'method':_0x277d3d[_0x3eeef0(0xb,-_0x47feb8._0x1c0432,-0x76,-_0x47feb8._0x394d0b)],'headers':{'Content-Type':_0x277d3d[_0x4783f3(0x614,_0x47feb8._0x437ff1,0x61d,0x57e)]},'body':JSON[_0x3eeef0(_0x47feb8._0x828b97,0x3c,0x66,0x55)+'y'](_0x3213a7)});let _0x328a09=_0x3fa4ea['ok'];if(!_0x3fa4ea['ok']&&_0x277d3d[_0x4783f3(_0x47feb8._0x32bdbe,0x5db,0x5b6,_0x47feb8._0x5e7a98)](_0x1c711a?.[_0x3eeef0(_0x47feb8._0x299a23,-0x1d,-_0x47feb8._0x505339,0x90)+'e'],'plain')){delete _0x3213a7['parse_mo'+'de'];const _0x3b8c3c=await _0x277d3d[_0x3eeef0(0x45,-0x6,-0x12,0x4b)](fetch,_0x3eeef0(0x18,0x37,0x64,_0x47feb8._0x3b4a63)+'api.tele'+'gram.org'+'/bot'+this[_0x4783f3(_0x47feb8._0xef4675,0x576,0x5e1,_0x47feb8._0x2459be)]+(_0x4783f3(0x563,0x5c2,_0x47feb8._0x490d56,0x5fc)+_0x3eeef0(_0x47feb8._0x24a2ff,_0x47feb8._0x1fd504,_0x47feb8._0x42fc85,0xe4)),{'method':_0x4783f3(_0x47feb8._0x451856,_0x47feb8._0x55e801,_0x47feb8._0x5ee8ef,0x4ab),'headers':{'Content-Type':_0x3eeef0(_0x47feb8._0x30461b,0x85,0x75,-0x2b)+_0x4783f3(_0x47feb8._0x2d4a1e,0x58f,0x60a,_0x47feb8._0x2cb604)},'body':JSON['stringif'+'y'](_0x3213a7)});_0x328a09=_0x3b8c3c['ok'];}if(_0x277d3d['xeOZg'](_0x6b8210['length'],0x17b*0x1a+-0x1dae+-0x29*0x37))for(let _0x210815=-0x1a3e+-0x20a9+0x3ae8;_0x210815<_0x6b8210[_0x4783f3(_0x47feb8._0xc060dd,0x513,_0x47feb8._0x489bfb,0x4b1)];_0x210815++){await this['sendMess'+'age'](_0x29756f,_0x6b8210[_0x210815],_0x1c711a);}return _0x328a09;}catch{return _0x277d3d[_0x3eeef0(_0x47feb8._0x3e6f55,0x14f,_0x47feb8._0x521de4,0x8a)](_0x277d3d[_0x4783f3(0x585,0x520,_0x47feb8._0x7b21f,_0x47feb8._0x61342e)],_0x277d3d[_0x4783f3(0x668,0x5f3,0x645,_0x47feb8._0x36fb71)])?![]:![];}}async[_0x18d02e(0x2bc,0x334,0x2e5,0x2c3)+'o'](_0x189527,_0x24b52f,_0x44bd9d,_0xc2ffd){const _0x1d8814={_0x2be962:0x32c,_0x3d06a4:0x3ac,_0x499577:0x37c,_0xe5817e:0x261,_0x41a29e:0x17f,_0x1418d8:0x16d,_0x4c3b93:0x25d,_0x3ec261:0x1fd,_0x40b4b8:0x28d,_0x5423f6:0x212,_0x3820f2:0x2c2,_0x109543:0x248,_0x41fa49:0x263,_0x156ae4:0x25b,_0x3879a6:0x20f,_0x56ee92:0x32e,_0x204db5:0x3a3,_0x121679:0x390,_0x1e6409:0x2fe,_0x2d456f:0x2af,_0x539b57:0x285,_0x1b7942:0x25a,_0x1a5071:0x216,_0x444289:0x2c0,_0x4d9f8f:0x277,_0x277088:0x2d1,_0x5e130e:0x315,_0x14e190:0x1df,_0x313c03:0x32c,_0x50e8f4:0x281,_0x1fce62:0x1e9,_0x52a17b:0x162,_0x2bb428:0x29f,_0x419ff4:0x2ea,_0x1bfe78:0x1f2,_0x2f2c94:0x214,_0x44af94:0x25c,_0x7346bc:0x1e1,_0x3eed09:0x2ad,_0x261f80:0x283,_0x462696:0x205,_0xd2c6f2:0x27d,_0x294a0a:0x213,_0x54cdb1:0x308,_0x30fc6f:0x2ac,_0x367a14:0x229,_0x5b12db:0x2f0,_0x311ba6:0x300,_0x4f343b:0x382,_0x1e8c9f:0x37d,_0x3c6ca1:0x2f7,_0x433103:0x2b9,_0x3629d0:0x26e,_0x3fd011:0x2f5,_0x2155a5:0x247,_0xa411b:0x2e0,_0x37f7c9:0x268,_0x14531f:0x21a,_0x413c83:0x295,_0x1682a9:0x2a4,_0x4cb83d:0x2c3,_0x5c2f15:0x3bb,_0x1d4d0b:0x2db,_0x12eea3:0x295,_0x3d5408:0x1f4,_0x5d2af7:0x1e4,_0x39e555:0x1ab,_0x5d99e:0x344,_0x2f0b6f:0x391,_0x1e8e88:0x3b4,_0x499214:0x234,_0x1a8544:0x1fa,_0x3448dc:0x2cd,_0x11fea7:0x29e,_0x5f0464:0x1e7},_0x40024b={_0x280ba7:0x66},_0x3bc366={_0x5c4357:0x67};function _0x50485d(_0x5f1ef0,_0x4383ad,_0x1fd2e3,_0x5c513f){return _0x18d02e(_0x5f1ef0-0x1e3,_0x5c513f,_0x5f1ef0-0xe,_0x5c513f-_0x3bc366._0x5c4357);}const _0x286591={'VWZQu':_0x50485d(_0x1d8814._0x2be962,_0x1d8814._0x3d06a4,_0x1d8814._0x499577,0x36d),'dXEUH':function(_0x456a0f,_0x4c8ef1){return _0x456a0f(_0x4c8ef1);},'UhGPs':_0x41ad41(0x1ec,_0x1d8814._0xe5817e,_0x1d8814._0x41a29e,_0x1d8814._0x1418d8)+'de','Rvrkq':_0x50485d(0x266,_0x1d8814._0x4c3b93,_0x1d8814._0x3ec261,0x269),'ldXpn':'reply_ma'+'rkup','XTMNh':function(_0x57e98b,_0x112ad9){return _0x57e98b===_0x112ad9;},'riueY':_0x41ad41(_0x1d8814._0x40b4b8,0x2c9,_0x1d8814._0x5423f6,0x24b),'obQjy':_0x50485d(0x283,_0x1d8814._0x3820f2,0x282,0x273)+'eg','AbBWu':_0x50485d(_0x1d8814._0x109543,_0x1d8814._0x41fa49,_0x1d8814._0x156ae4,_0x1d8814._0x3879a6),'zLJuW':_0x50485d(_0x1d8814._0x56ee92,_0x1d8814._0x204db5,_0x1d8814._0x121679,_0x1d8814._0x1e6409)+_0x41ad41(_0x1d8814._0x2d456f,0x30c,_0x1d8814._0x539b57,0x32d),'qpaXJ':function(_0x419ee5,_0x327b3b,_0x4e9a47){return _0x419ee5(_0x327b3b,_0x4e9a47);},'jqBVj':_0x41ad41(0x20c,_0x1d8814._0x1b7942,0x239,_0x1d8814._0x156ae4)};if(!this[_0x41ad41(0x251,_0x1d8814._0x1a5071,_0x1d8814._0x444289,0x265)])return![];function _0x41ad41(_0x4ae408,_0x347db1,_0x307642,_0x4035ca){return _0x18d02e(_0x4ae408-0x11,_0x307642,_0x4ae408- -0x6d,_0x4035ca-_0x40024b._0x280ba7);}try{const _0x15cf1a=_0x43f9b3[_0x50485d(0x2e4,_0x1d8814._0x4d9f8f,_0x1d8814._0x277088,_0x1d8814._0x5e130e)+'Sync'](_0x24b52f),_0x2fffe0=new FormData();_0x2fffe0['append'](_0x286591['VWZQu'],_0x286591[_0x50485d(0x250,0x261,0x251,_0x1d8814._0x14e190)](String,_0x189527));_0x44bd9d&&(_0x2fffe0['append'](_0x50485d(0x307,_0x1d8814._0x313c03,0x373,_0x1d8814._0x50e8f4),_0x44bd9d),_0x2fffe0[_0x41ad41(_0x1d8814._0x1fce62,0x268,0x235,_0x1d8814._0x52a17b)](_0x286591[_0x50485d(_0x1d8814._0x2bb428,_0x1d8814._0x419ff4,0x2d3,0x277)],_0xc2ffd?.[_0x41ad41(0x1ec,_0x1d8814._0x1bfe78,0x25a,_0x1d8814._0x2f2c94)+'de']||_0x286591[_0x41ad41(_0x1d8814._0x44af94,_0x1d8814._0x7346bc,_0x1d8814._0x3eed09,_0x1d8814._0x261f80)]));_0xc2ffd?.[_0x41ad41(0x23e,0x274,_0x1d8814._0x462696,_0x1d8814._0xd2c6f2)+_0x41ad41(0x285,_0x1d8814._0x294a0a,_0x1d8814._0x54cdb1,_0x1d8814._0x30fc6f)]&&_0x2fffe0['append'](_0x286591[_0x50485d(0x29e,_0x1d8814._0x367a14,_0x1d8814._0x5b12db,_0x1d8814._0x41fa49)],_0x286591['XTMNh'](typeof _0xc2ffd['reply_ma'+_0x50485d(_0x1d8814._0x311ba6,_0x1d8814._0x4f343b,_0x1d8814._0x1e8c9f,_0x1d8814._0x3c6ca1)],_0x286591['riueY'])?_0xc2ffd[_0x50485d(_0x1d8814._0x433103,_0x1d8814._0x3629d0,0x25c,_0x1d8814._0x3fd011)+_0x41ad41(0x285,0x21c,_0x1d8814._0x2155a5,_0x1d8814._0xa411b)]:JSON[_0x50485d(_0x1d8814._0x37f7c9,_0x1d8814._0x14531f,_0x1d8814._0x413c83,0x2e0)+'y'](_0xc2ffd[_0x50485d(_0x1d8814._0x433103,0x318,0x2df,0x2e0)+_0x41ad41(0x285,_0x1d8814._0x1682a9,0x2d8,_0x1d8814._0x4cb83d)]));const _0x4e582f=new Blob([new Uint8Array(_0x15cf1a)],{'type':_0x286591['obQjy']});_0x2fffe0['append'](_0x286591[_0x41ad41(0x22e,0x288,0x222,0x1cf)],_0x4e582f,_0x286591[_0x50485d(0x350,_0x1d8814._0x5c2f15,_0x1d8814._0x1d4d0b,_0x1d8814._0x1d4d0b)]);const _0x5d5159=await _0x286591[_0x50485d(0x27a,0x2c7,_0x1d8814._0x12eea3,0x2f4)](fetch,_0x41ad41(_0x1d8814._0x3d5408,_0x1d8814._0x5d2af7,0x212,_0x1d8814._0x39e555)+_0x50485d(0x33e,_0x1d8814._0x5d99e,0x2b7,0x365)+_0x50485d(0x33a,_0x1d8814._0x2f0b6f,0x2d5,_0x1d8814._0x1e8e88)+'/bot'+this[_0x41ad41(0x251,_0x1d8814._0x499214,0x2d3,_0x1d8814._0x1a8544)]+(_0x50485d(0x2bb,0x27c,_0x1d8814._0x3448dc,_0x1d8814._0x11fea7)+'to'),{'method':_0x286591[_0x41ad41(0x1ca,0x218,_0x1d8814._0x5f0464,0x219)],'body':_0x2fffe0});return _0x5d5159['ok'];}catch{return![];}}async['sendDocu'+_0x33ed24(-0x125,-0x3f,-0xbb,-0xfa)](_0x501617,_0x457f3a,_0x490cdd,_0x15c7fe){const _0x3ef8ff={_0x18a726:0x1af,_0x4854c6:0x12e,_0x438423:0x36d,_0xaa9a4:0x2ac,_0x3af130:0xa3,_0x5dc082:0x24c,_0x1f3480:0x237,_0x568b66:0x2a3,_0x4bf0bf:0x21d,_0x104569:0x26c,_0x353c27:0x250,_0x1db128:0xe1,_0x20b1f3:0x48,_0x3802bd:0x5a,_0x1b4dcf:0x81,_0x2177de:0x259,_0x5172c0:0x66,_0x46e57b:0x36,_0x20838a:0x73,_0x53b010:0x53,_0xf6a273:0x4e,_0x39e388:0x291,_0x5890c1:0x25b,_0x5c39e9:0xff,_0x1f14c7:0x9b,_0x162377:0xe8,_0x5b6e54:0x22e,_0x59b9da:0x2a8,_0x1e2fe3:0x2cd,_0x4fc357:0x2d6,_0x1b9937:0x359,_0x24494c:0x385,_0x3e5b14:0x379,_0x29761c:0xe2,_0x413ad1:0x13c,_0x1ed428:0xfb,_0x1a8fd1:0x293,_0x36bf17:0x256,_0x54959c:0x282,_0x1e8aa5:0x2d0,_0x5b49ca:0x2a4,_0x56ab8b:0x11a,_0x4c2614:0x58,_0x14328c:0xb0},_0x4e8484={_0xd7847a:0x1a3,_0x31976b:0x52};function _0x23504e(_0x56d6d9,_0x5f43c3,_0x39a67e,_0xeda5f2){return _0x33ed24(_0x56d6d9-0x16f,_0x56d6d9,_0x5f43c3-0x396,_0xeda5f2-0xf5);}function _0x3ed1d7(_0x4770bd,_0x525da1,_0x414af6,_0x5b85e9){return _0x33ed24(_0x4770bd-0x15,_0x4770bd,_0x525da1-_0x4e8484._0xd7847a,_0x5b85e9-_0x4e8484._0x31976b);}const _0x514c3e={'ZAHSp':_0x3ed1d7(_0x3ef8ff._0x18a726,_0x3ef8ff._0x4854c6,0xcc,0x1ad),'XIrag':_0x23504e(_0x3ef8ff._0x438423,0x2fc,0x28e,_0x3ef8ff._0xaa9a4),'cOfVl':_0x3ed1d7(0x56,0x69,_0x3ef8ff._0x3af130,0x92)+'de','jfrSe':_0x23504e(0x203,_0x3ef8ff._0x5dc082,0x207,_0x3ef8ff._0x1f3480)+_0x23504e(0x294,_0x3ef8ff._0x568b66,0x231,_0x3ef8ff._0x4bf0bf),'VlGsU':_0x23504e(0x28d,_0x3ef8ff._0x104569,0x27f,_0x3ef8ff._0x353c27),'sCqCy':function(_0x142741,_0x420d5b,_0x366fe4){return _0x142741(_0x420d5b,_0x366fe4);},'MMoyq':_0x3ed1d7(_0x3ef8ff._0x1db128,0x89,_0x3ef8ff._0x20b1f3,0xea)};if(!this[_0x3ed1d7(_0x3ef8ff._0x3802bd,0xce,_0x3ef8ff._0x1b4dcf,0x4b)])return![];try{const _0x460884=new FormData();_0x460884[_0x23504e(0x214,_0x3ef8ff._0x2177de,0x2c6,0x2d5)](_0x514c3e['ZAHSp'],String(_0x501617));_0x15c7fe&&(_0x460884[_0x3ed1d7(0xe7,_0x3ef8ff._0x5172c0,_0x3ef8ff._0x46e57b,_0x3ef8ff._0x20838a)](_0x514c3e['XIrag'],_0x15c7fe),_0x460884[_0x3ed1d7(0xd1,_0x3ef8ff._0x5172c0,0xb2,0xb9)](_0x514c3e[_0x3ed1d7(_0x3ef8ff._0x53b010,_0x3ef8ff._0xf6a273,0x49,0xc)],_0x23504e(_0x3ef8ff._0x39e388,_0x3ef8ff._0x5890c1,0x28e,0x1f8)));const _0x28264b=new Blob([new Uint8Array(_0x457f3a)],{'type':_0x514c3e[_0x3ed1d7(0x17d,_0x3ef8ff._0x5c39e9,_0x3ef8ff._0x1f14c7,_0x3ef8ff._0x162377)]});_0x460884['append'](_0x514c3e[_0x23504e(_0x3ef8ff._0x5b6e54,_0x3ef8ff._0x59b9da,_0x3ef8ff._0x1e2fe3,0x30a)],_0x28264b,_0x490cdd);const _0x20c42e=await _0x514c3e[_0x23504e(0x2a0,_0x3ef8ff._0x4fc357,_0x3ef8ff._0x1b9937,0x339)](fetch,'https://'+_0x23504e(_0x3ef8ff._0x24494c,0x333,_0x3ef8ff._0x3e5b14,0x3b2)+_0x3ed1d7(_0x3ef8ff._0x29761c,_0x3ef8ff._0x413ad1,_0x3ef8ff._0x1ed428,0x1c2)+_0x23504e(_0x3ef8ff._0x1a8fd1,_0x3ef8ff._0x36bf17,0x244,0x20e)+this[_0x23504e(0x269,0x2c1,_0x3ef8ff._0x54959c,_0x3ef8ff._0x1e8aa5)]+('/sendDoc'+_0x23504e(0x2ea,0x327,0x32e,_0x3ef8ff._0x5b49ca)),{'method':_0x514c3e[_0x3ed1d7(_0x3ef8ff._0x56ab8b,0xdb,_0x3ef8ff._0x4c2614,_0x3ef8ff._0x14328c)],'body':_0x460884});return _0x20c42e['ok'];}catch{return![];}}async['answerCa'+_0x18d02e(0x2ec,0x2af,0x2c4,0x25f)+_0x18d02e(0x304,0x361,0x2f6,0x303)](_0x5f165f,_0x47b094){const _0x3c65eb={_0x37615f:0x15,_0x2207c5:0x5d,_0x1fa422:0x84,_0x3c7772:0x41,_0x599967:0x61,_0xdd5a7b:0x79,_0x308673:0xb6,_0xcc3ab8:0x12e,_0x20cd7a:0x1a9,_0x255453:0x128,_0xfff6a9:0x135,_0x11fd21:0x124,_0x24f8de:0xc7,_0x2a0ed4:0x18,_0x4de6b6:0x7b,_0x284d3e:0x5d,_0x157135:0x43,_0x3290c1:0x56,_0xc121fc:0x1a,_0x5d094e:0x49,_0xc97083:0xe5,_0x5d773a:0x40,_0x3ad1cf:0x3e,_0x12da5b:0x10,_0x2edc8c:0x94,_0x2bc4d4:0x5d,_0xaaa198:0xf5,_0x5f0b5d:0x152,_0x50f830:0xdc},_0x52d2a9={'yMLyJ':_0x107e91(-_0x3c65eb._0x37615f,0x71,_0x3c65eb._0x2207c5,_0x3c65eb._0x1fa422),'fWYYQ':_0x107e91(-0x47,_0x3c65eb._0x3c7772,_0x3c65eb._0x599967,-0x47)+'ion/json'};function _0x8b7c34(_0x5d2e08,_0x116ae4,_0x18aed8,_0x102ab9){return _0x18d02e(_0x5d2e08-0x105,_0x116ae4,_0x102ab9- -0x336,_0x102ab9-0x1b1);}function _0x107e91(_0x834a1e,_0x4ba7b1,_0x5351ab,_0x59b444){return _0x18d02e(_0x834a1e-0x12f,_0x5351ab,_0x4ba7b1- -0x208,_0x59b444-0x114);}if(!this[_0x107e91(_0x3c65eb._0xdd5a7b,_0x3c65eb._0x308673,0xd4,_0x3c65eb._0xcc3ab8)])return;try{await fetch(_0x8b7c34(-0x115,-0xf4,-0xd2,-0xd5)+_0x107e91(_0x3c65eb._0x20cd7a,_0x3c65eb._0x255453,0x155,_0x3c65eb._0xfff6a9)+_0x107e91(0x166,_0x3c65eb._0x11fd21,0x10b,0x1aa)+_0x107e91(_0x3c65eb._0x24f8de,0x4b,-_0x3c65eb._0x2a0ed4,_0x3c65eb._0x4de6b6)+this['botToken']+(_0x107e91(0x48,0x6f,_0x3c65eb._0x284d3e,_0x3c65eb._0x157135)+_0x107e91(0x8b,_0x3c65eb._0x3290c1,-_0x3c65eb._0xc121fc,_0x3c65eb._0x5d094e)+_0x107e91(0xba,0xd9,_0x3c65eb._0xc97083,0x15b)),{'method':_0x52d2a9[_0x8b7c34(_0x3c65eb._0x5d773a,-0x66,-_0x3c65eb._0x3ad1cf,-_0x3c65eb._0x12da5b)],'headers':{'Content-Type':_0x52d2a9[_0x107e91(0x3b,_0x3c65eb._0x2edc8c,0xcf,_0x3c65eb._0x2bc4d4)]},'body':JSON[_0x8b7c34(-0x118,-_0x3c65eb._0xaaa198,-_0x3c65eb._0x5f0b5d,-_0x3c65eb._0x50f830)+'y']({'callback_query_id':_0x5f165f,'text':_0x47b094})});}catch{}}async[_0x18d02e(0x2b6,0x286,0x260,0x225)+_0x18d02e(0x32c,0x378,0x313,0x310)+_0x18d02e(0x32b,0x290,0x2e2,0x35e)](){const _0x300aa6={_0x41f68f:0x5c,_0xd5e54c:0x1f9,_0x131277:0x22a,_0x2be587:0x177,_0x4f1718:0x1ff,_0x38930b:0x213,_0x2a20dc:0x3d,_0x1a47b9:0x1f0,_0x1bdc05:0xd9,_0x56b57c:0x1d,_0x49131a:0x66,_0x1bc60b:0xa7,_0x9e3702:0x17,_0x15cf11:0x297,_0x4149fc:0x2cf,_0x48bfa9:0x21,_0x98feb5:0x244,_0x2ff631:0x236,_0x4ad15a:0x1bc,_0x21a8ef:0x1e6,_0x5935dc:0x199,_0x1df1b1:0x228,_0x288fee:0x42,_0x2a7a33:0xa9,_0x112050:0x4f,_0x3bb4cc:0x2d,_0x26760f:0x3c,_0x22b354:0x266,_0x49bd02:0x1b6,_0x44e3db:0x239,_0x213ad7:0x1a,_0x5837f3:0x4,_0xd8a055:0x1c5,_0x887d08:0x1f6,_0x3164d8:0x180,_0x30dd3f:0x59,_0x56f628:0xd,_0x55fa29:0x78,_0x45649d:0xde,_0x31bc22:0xe9,_0x129740:0x311,_0xb630d8:0x2e8,_0x56d410:0x26d,_0x205e4f:0x1dc,_0x5d7913:0x23a,_0x552238:0x256,_0x531cae:0x258,_0x55c365:0x1a9,_0x43fbe7:0x1cc,_0x236136:0x20b,_0x4c21cc:0x208,_0x26612f:0x23d,_0x58f0c5:0x217,_0x4862ad:0x44,_0x82ec6b:0x9f,_0x2aa3ee:0x25,_0x2c3744:0x10e,_0xb7894e:0x9f,_0x33312d:0x29a,_0x4d91fa:0x211,_0x9dc1a5:0x292,_0xeb897c:0x45,_0x3b6a2d:0x298,_0x4f30fd:0x23,_0x5a7d66:0x8b,_0x1bb505:0x227,_0x197039:0x1f3,_0x52b4df:0x24e,_0x9b79cc:0x23f,_0x2e616a:0x8,_0x470d49:0xb4,_0x490c29:0x2a2,_0x21f1f6:0x314,_0x42b5d3:0xf,_0x580e1d:0x50,_0x480e97:0x34,_0xb27f13:0xf9,_0x2dc175:0x5e,_0x495426:0x61,_0x34f98f:0x5b,_0x5291f5:0x26,_0x389319:0x1d,_0x864f6b:0x270,_0x11693a:0x253,_0xfa6ec9:0x16,_0x246fe2:0x56,_0x4eedd7:0x1d4,_0x49fe20:0x1a4,_0x496e78:0x179,_0x589ab6:0x10,_0xb05f20:0x8b,_0x2f530a:0x20f,_0x35f073:0x215,_0x56ba59:0x219,_0x286509:0x86,_0x2117e3:0x7c,_0x243e10:0x21a,_0x12a6f1:0x1a5,_0x5887e1:0x257,_0x32193b:0x1c,_0x21b142:0x1eb,_0x2d5413:0x1f6,_0x3eae04:0x19f,_0x39a10e:0x18e,_0x986cb5:0x72,_0x4481a7:0x2f6,_0x24e141:0x243,_0x2d0ce6:0x25b,_0x50b8e1:0x2a7,_0x48e8a9:0x230,_0x517abf:0x290,_0x1990a0:0x263,_0x205871:0x6f,_0x39e509:0xea,_0x3a633e:0x69,_0x5036f8:0x81,_0x5b60a6:0x41,_0x334930:0x5,_0x36be51:0xa3,_0x18b76e:0x30,_0x1088e6:0x43,_0x309b76:0x25a,_0x428000:0x245,_0x3a142d:0x299,_0x11dcd1:0x290,_0x260243:0x263,_0x1cca55:0x2c9,_0x3e6916:0x6b,_0x97d110:0x13,_0x2d1d99:0x1ed,_0x558cb7:0x1a3,_0x4d17d6:0x1d8,_0x4f896e:0x222,_0x5e12aa:0x85,_0x403cb0:0x2b9,_0x4deeea:0x2c7,_0x2b76a1:0x77,_0x4c148d:0x244,_0x185417:0x8a,_0x245542:0xeb,_0x1aff23:0x2b3,_0x31cfb0:0x309,_0x2062af:0x321,_0x2c6ed9:0x248,_0x1a902f:0x28e,_0x2ab6b0:0x223,_0x2bae8c:0x20b,_0x4fc8df:0x232,_0x155fed:0x335,_0x1b55ce:0x331,_0x4a7ef0:0x2d6,_0x174670:0x28d,_0x39581e:0x251,_0x19909a:0x231,_0x166386:0x1f5,_0x56b9ea:0x1db,_0x245c37:0x2ac,_0x79f9ac:0x28b,_0x5458d5:0x61,_0x5617f0:0x41,_0x3ac023:0x92,_0x6cade5:0xe7,_0x20a593:0x4f,_0x55723e:0x96,_0x4a367e:0x1c,_0x2094f2:0x2d,_0x2c103a:0x25c,_0x3e6998:0x2bb,_0x1858c2:0x32e,_0x4faf38:0x52},_0x37fb02={_0x19514c:0x12c},_0x3726c3={_0x2fdfab:0x57,_0x1dc6c6:0xf1};function _0x3fdd66(_0x3976c8,_0x487033,_0x38a9b0,_0x356a0a){return _0x33ed24(_0x3976c8-_0x3726c3._0x2fdfab,_0x356a0a,_0x38a9b0-_0x3726c3._0x1dc6c6,_0x356a0a-0x9f);}const _0x14cfdc={'hXuFJ':_0x3fdd66(_0x300aa6._0x41f68f,0xc0,0x38,0x28),'gobwc':_0x3cac2d(-_0x300aa6._0xd5e54c,-_0x300aa6._0x131277,-0x1bf,-_0x300aa6._0x2be587)+_0x3fdd66(-0x9,0x75,0xe,-0x66)+_0x3cac2d(-_0x300aa6._0x4f1718,-0x19e,-0x1e0,-_0x300aa6._0x38930b)+_0x3fdd66(0xba,0x8,_0x300aa6._0x2a20dc,0x66)+_0x3cac2d(-0x1db,-0x1cc,-_0x300aa6._0x1a47b9,-0x15a)+_0x3fdd66(-_0x300aa6._0x1bdc05,_0x300aa6._0x56b57c,-_0x300aa6._0x49131a,-_0x300aa6._0x1bc60b),'uqKmS':'status','nBkAx':_0x3fdd66(-0x6d,-0x3d,-0x2f,-_0x300aa6._0x9e3702)+_0x3cac2d(-_0x300aa6._0x15cf11,-_0x300aa6._0x4149fc,-0x251,-0x2b8)+_0x3fdd66(0x85,0x34,0x25,-_0x300aa6._0x48bfa9)+_0x3cac2d(-_0x300aa6._0x98feb5,-_0x300aa6._0x2ff631,-0x267,-_0x300aa6._0x4ad15a)+'branch','DconF':_0x3cac2d(-_0x300aa6._0x21a8ef,-_0x300aa6._0x5935dc,-_0x300aa6._0x1df1b1,-0x1f8)+'ot','YYToj':_0x3fdd66(-_0x300aa6._0x288fee,-0x4a,0x3e,0x52),'RpEwF':'Generate'+_0x3fdd66(_0x300aa6._0x2a7a33,-_0x300aa6._0x112050,_0x300aa6._0x3bb4cc,-_0x300aa6._0x26760f)+_0x3cac2d(-0x21e,-0x286,-_0x300aa6._0x22b354,-0x1d1)+_0x3cac2d(-0x21f,-0x200,-_0x300aa6._0x49bd02,-_0x300aa6._0x44e3db)+_0x3fdd66(_0x300aa6._0x56b57c,-0x5c,_0x300aa6._0x213ad7,-_0x300aa6._0x5837f3),'YQmYk':_0x3cac2d(-_0x300aa6._0xd8a055,-0x21e,-_0x300aa6._0x887d08,-_0x300aa6._0x3164d8),'wcrGi':_0x3fdd66(0x36,-_0x300aa6._0x30dd3f,_0x300aa6._0x56f628,-_0x300aa6._0x55fa29)+'\x20diff\x20of'+_0x3fdd66(0x1f,0x105,0x93,0x14)+_0x3fdd66(_0x300aa6._0x45649d,_0x300aa6._0x31bc22,0x70,_0x300aa6._0x56b57c),'HMuYb':_0x3cac2d(-0x28c,-_0x300aa6._0x129740,-_0x300aa6._0xb630d8,-_0x300aa6._0x56d410),'kLkrr':_0x3cac2d(-0x215,-0x1ba,-_0x300aa6._0x205e4f,-0x1d4),'RQWEA':_0x3cac2d(-_0x300aa6._0x5d7913,-_0x300aa6._0x552238,-0x1c5,-_0x300aa6._0x531cae)+_0x3cac2d(-0x1dd,-0x20d,-_0x300aa6._0x55c365,-0x17e)+'CP\x20tool\x20'+'servers','ELRmF':_0x3cac2d(-_0x300aa6._0x43fbe7,-_0x300aa6._0x236136,-_0x300aa6._0x4c21cc,-_0x300aa6._0x26612f),'yZowG':_0x3cac2d(-0x268,-0x2c8,-0x253,-_0x300aa6._0x58f0c5)+_0x3fdd66(-_0x300aa6._0x4862ad,-_0x300aa6._0x82ec6b,-0x5d,-_0x300aa6._0x2aa3ee)+_0x3fdd66(_0x300aa6._0x2c3744,0xe3,0x94,0x118),'cjESo':function(_0x1bae07,_0x14f6a3,_0x546b13){return _0x1bae07(_0x14f6a3,_0x546b13);},'dtZrS':_0x3fdd66(-_0x300aa6._0xb7894e,0x26,-0x59,-_0x300aa6._0x45649d)+_0x3cac2d(-0x22f,-_0x300aa6._0x33312d,-0x2b5,-0x25a),'loyef':_0x3cac2d(-0x28d,-0x272,-_0x300aa6._0x4d91fa,-_0x300aa6._0x9dc1a5),'SLlXW':_0x3fdd66(-0x4a,-_0x300aa6._0xeb897c,-0x5a,-0x4a)};if(!this[_0x3cac2d(-0x248,-_0x300aa6._0x3b6a2d,-0x1e7,-0x26f)])return;function _0x3cac2d(_0x18b1b2,_0x58c57f,_0x4657b6,_0x18b332){return _0x33ed24(_0x18b1b2-_0x37fb02._0x19514c,_0x58c57f,_0x18b1b2- -0x173,_0x18b332-0x10d);}try{const _0x418dcd=[{'command':_0x14cfdc[_0x3fdd66(-_0x300aa6._0x4f30fd,_0x300aa6._0x5a7d66,0x10,-0x50)],'description':_0x3cac2d(-0x209,-0x244,-_0x300aa6._0x1bb505,-_0x300aa6._0x197039)+_0x3cac2d(-_0x300aa6._0x52b4df,-_0x300aa6._0x9b79cc,-0x216,-0x28a)+'E\x20messag'+_0x3fdd66(-0x1d,_0x300aa6._0x2e616a,0x2e,0x53)+'one\x20&\x20li'+_0x3fdd66(0x3b,-0x6,-0x2e,-_0x300aa6._0x470d49)+'es'},{'command':'chats','description':_0x14cfdc[_0x3cac2d(-_0x300aa6._0x490c29,-0x2cb,-_0x300aa6._0x21f1f6,-0x222)]},{'command':'menu','description':_0x3fdd66(-_0x300aa6._0x42b5d3,-_0x300aa6._0x580e1d,0x1f,_0x300aa6._0x480e97)+_0x3fdd66(0xb3,_0x300aa6._0xb27f13,0x95,0x9c)+_0x3fdd66(-0x5,-_0x300aa6._0x2dc175,0x15,0x85)+_0x3fdd66(-_0x300aa6._0x495426,_0x300aa6._0x34f98f,-_0x300aa6._0x5291f5,-0x99)},{'command':_0x14cfdc[_0x3fdd66(_0x300aa6._0x48bfa9,-_0x300aa6._0x389319,0x3a,0x38)],'description':_0x14cfdc['nBkAx']},{'command':_0x14cfdc[_0x3cac2d(-_0x300aa6._0x864f6b,-0x27b,-_0x300aa6._0x11693a,-0x29a)],'description':_0x3fdd66(-_0x300aa6._0xfa6ec9,-0xd,-_0x300aa6._0x246fe2,0x0)+_0x3cac2d(-_0x300aa6._0x4eedd7,-0x22b,-_0x300aa6._0x49fe20,-_0x300aa6._0x496e78)+_0x3fdd66(_0x300aa6._0x589ab6,-_0x300aa6._0xb05f20,-0x38,-0x91)+_0x3cac2d(-0x1dc,-_0x300aa6._0x2f530a,-_0x300aa6._0x35f073,-_0x300aa6._0x56ba59)+_0x3fdd66(_0x300aa6._0x286509,0x3e,_0x300aa6._0x495426,_0x300aa6._0x2117e3)},{'command':_0x14cfdc[_0x3cac2d(-_0x300aa6._0x243e10,-_0x300aa6._0x12a6f1,-0x1df,-_0x300aa6._0x5887e1)],'description':_0x14cfdc[_0x3fdd66(-0x1a,-_0x300aa6._0x32193b,0x5c,0x7d)]},{'command':_0x14cfdc[_0x3cac2d(-_0x300aa6._0x21b142,-0x1a3,-0x273,-0x1b6)],'description':_0x14cfdc[_0x3cac2d(-_0x300aa6._0x2d5413,-_0x300aa6._0x3eae04,-_0x300aa6._0x5d7913,-_0x300aa6._0x39a10e)]},{'command':_0x14cfdc[_0x3fdd66(-0x66,-_0x300aa6._0x986cb5,-0x52,-0xae)],'description':_0x3cac2d(-0x294,-0x2cb,-_0x300aa6._0x4481a7,-0x312)+_0x3cac2d(-0x239,-_0x300aa6._0x24e141,-_0x300aa6._0x2d0ce6,-0x1db)+_0x3cac2d(-_0x300aa6._0x50b8e1,-0x300,-0x2ef,-_0x300aa6._0x48e8a9)+'s'},{'command':_0x3cac2d(-0x22b,-_0x300aa6._0x517abf,-0x203,-_0x300aa6._0x1990a0),'description':_0x3fdd66(-0x2f,-0x8a,-_0x300aa6._0x205871,-0x4e)+_0x3fdd66(-_0x300aa6._0x39e509,-0xa2,-_0x300aa6._0x3a633e,-0x4b)+_0x3fdd66(0xc5,_0x300aa6._0x5036f8,_0x300aa6._0x5b60a6,_0x300aa6._0x334930)+_0x3fdd66(-_0x300aa6._0x55fa29,-_0x300aa6._0x36be51,-0x27,0x5b)+_0x3fdd66(-_0x300aa6._0x18b76e,_0x300aa6._0x2a20dc,-_0x300aa6._0x1088e6,-0x70)},{'command':_0x14cfdc['kLkrr'],'description':_0x14cfdc[_0x3cac2d(-_0x300aa6._0x309b76,-0x2a2,-_0x300aa6._0x428000,-0x1dc)]},{'command':_0x14cfdc[_0x3cac2d(-_0x300aa6._0x3a142d,-_0x300aa6._0x26612f,-_0x300aa6._0x11dcd1,-0x229)],'description':_0x3cac2d(-0x283,-_0x300aa6._0x260243,-_0x300aa6._0x531cae,-_0x300aa6._0x1cca55)+'\x20cancel\x20'+_0x3fdd66(-0x49,_0x300aa6._0x3e6916,-_0x300aa6._0x97d110,-0x8e)+'gent\x20tas'+'k'},{'command':_0x3cac2d(-_0x300aa6._0x2d1d99,-_0x300aa6._0x558cb7,-_0x300aa6._0x4d17d6,-_0x300aa6._0x4f896e),'description':_0x14cfdc[_0x3fdd66(0x80,_0x300aa6._0x82ec6b,_0x300aa6._0x5e12aa,0xeb)]}];await _0x14cfdc[_0x3cac2d(-_0x300aa6._0x403cb0,-0x319,-0x30a,-_0x300aa6._0x4deeea)](fetch,_0x3fdd66(0xf,-_0x300aa6._0x2b76a1,-_0x300aa6._0x5b60a6,0x35)+_0x3cac2d(-0x1d6,-_0x300aa6._0x4c148d,-0x16d,-0x1bc)+_0x3fdd66(0xbd,0x86,_0x300aa6._0x185417,_0x300aa6._0x245542)+_0x3cac2d(-_0x300aa6._0x1aff23,-_0x300aa6._0x31cfb0,-_0x300aa6._0x2062af,-0x2c3)+this[_0x3cac2d(-_0x300aa6._0x2c6ed9,-_0x300aa6._0x1a902f,-0x1d3,-_0x300aa6._0x2ab6b0)]+(_0x3cac2d(-_0x300aa6._0x2bae8c,-0x241,-_0x300aa6._0x4fc8df,-0x1ff)+_0x3cac2d(-0x2d0,-_0x300aa6._0x155fed,-_0x300aa6._0x1b55ce,-_0x300aa6._0x4a7ef0)),{'method':_0x3cac2d(-_0x300aa6._0x174670,-_0x300aa6._0x39581e,-_0x300aa6._0x19909a,-0x28c),'headers':{'Content-Type':_0x14cfdc[_0x3cac2d(-0x25c,-_0x300aa6._0x166386,-_0x300aa6._0x56b9ea,-0x2b8)]},'body':JSON[_0x3cac2d(-_0x300aa6._0x245c37,-0x2c7,-_0x300aa6._0x79f9ac,-0x309)+'y']({'commands':_0x418dcd})}),await fetch(_0x3fdd66(_0x300aa6._0x26760f,-_0x300aa6._0x5458d5,-_0x300aa6._0x5617f0,-0x37)+'api.tele'+_0x3fdd66(_0x300aa6._0x3ac023,0xa0,0x8a,_0x300aa6._0x6cade5)+_0x3fdd66(-0xa7,-0x89,-_0x300aa6._0x20a593,-_0x300aa6._0x55723e)+this[_0x3fdd66(0x0,0x2a,_0x300aa6._0x4a367e,-_0x300aa6._0x2094f2)]+('/setChat'+'MenuButt'+'on'),{'method':_0x14cfdc['loyef'],'headers':{'Content-Type':_0x14cfdc[_0x3cac2d(-_0x300aa6._0x2c103a,-_0x300aa6._0x3e6998,-0x1ed,-0x20c)]},'body':JSON['stringif'+'y']({'menu_button':{'type':_0x14cfdc[_0x3cac2d(-0x2b1,-_0x300aa6._0x1858c2,-0x25a,-0x2cf)]}})})[_0x3fdd66(_0x300aa6._0x4faf38,-0x83,-0x1d,-_0x300aa6._0x36be51)](()=>{});}catch{}}async[_0x33ed24(-0x9d,-0x98,-0xa9,-0xff)+_0x18d02e(0x31e,0x2a9,0x2b4,0x334)](_0x4473cc,_0x445293,_0xc0cb36){const _0x1fe983={_0x5748e5:0x11d,_0x18c2b6:0xb0,_0x3c706a:0x124,_0x2ba899:0x6c,_0x4eba4c:0x2c,_0x112319:0x58,_0x3013e6:0xa6,_0x58f54c:0x38,_0x228dba:0xc,_0x27fe5c:0x43,_0x1d6a75:0x61,_0x104f20:0xec,_0x419cdc:0x5,_0x4d0e04:0x65,_0x1a63cd:0x1d,_0xc56f86:0x4f,_0x772749:0x3f,_0x3ef539:0x8e,_0x14f45c:0x6b,_0x598b9c:0x78,_0x385828:0x5c,_0x3b3e17:0x80,_0x2efa76:0xdf,_0x3ca771:0x7,_0x7746e3:0x45,_0x21f5a1:0x81,_0xe4784b:0x83,_0x56e144:0xee},_0x1b8263={_0x33f693:0x226,_0x316e72:0x1f0,_0x555d3b:0x109,_0x219e2e:0x200,_0x355e8d:0x252,_0x5ccc68:0x1c1,_0x14c713:0x215,_0x1f17fc:0x293,_0x534f81:0x1fb,_0x1d7694:0x20a,_0x13285a:0x231,_0x2da7f9:0x1d8,_0x3799ed:0x18a,_0x540c21:0x96,_0xd85e80:0xbd,_0x3ce0db:0x106,_0x230c94:0x14e,_0x709c58:0xc6,_0x23b786:0xd3,_0x546bc3:0x138,_0xc1961c:0x12b,_0x4ee859:0x22d,_0x2936c3:0x1f6,_0x12eaa7:0x102,_0x5c262b:0xf2,_0x22015f:0xf3,_0x5998ac:0x140,_0x3305b2:0x19a,_0x1a23a5:0xf9,_0xaeb10c:0x16a,_0x5b78b8:0x1c4,_0x425e71:0x179,_0x206c8d:0x1b0,_0xeec57a:0x162,_0x12c761:0xf6,_0x21c10d:0xf8,_0x5528a8:0xde,_0x1aeacf:0x1cf,_0x4906cd:0x155,_0x12d97a:0x1c5,_0x3d4882:0x228,_0x4caa35:0x11d,_0x3df918:0x193,_0x38d176:0x17e,_0x15365a:0x1d4,_0x534296:0x1e8,_0x42a6ed:0x224,_0x4b1b2e:0x197,_0x4d79e6:0x25a},_0x242c61={_0x2d1d07:0xfb,_0x1d68ef:0xce,_0x1c3264:0x8b,_0x143697:0x93,_0x2718a5:0x9d,_0x1a381a:0x2e,_0x5281f3:0x35,_0x35d204:0x9b,_0x1e87e8:0x2c,_0x4f1c4b:0x188,_0x3fbc8c:0x141,_0x587de5:0x10c,_0x2fe4b3:0xbe,_0x30129f:0xf7,_0x8ba1e6:0x118,_0xbfa589:0x10c,_0x3443d0:0xc1,_0x3ce949:0x4c,_0x29e5c0:0x2b,_0x36072c:0x48,_0x175a67:0x2d,_0x486ce8:0x94,_0x19e0dc:0xef,_0x1cd7cb:0x117,_0x208081:0x129,_0x58e8a4:0xd7,_0x1f565c:0x8b,_0x4ae835:0x15f,_0x4e699d:0xfc,_0x441637:0xd9,_0xe4d0b:0xbf,_0x1331ee:0xd6,_0x301c38:0x64,_0x27542e:0xdb,_0x5298a9:0xd7,_0xb2f7de:0xe0,_0x1a24bc:0x79,_0x20e835:0x15e,_0x54e816:0x96,_0x337a27:0x11f,_0xe701a3:0xda,_0x4b0922:0xdd,_0x463e9b:0x136,_0x586dd1:0x58,_0x25e6bb:0xa4,_0x387180:0x6e,_0x2a1e19:0xe2,_0x400778:0x147,_0x2129c5:0x16c,_0x212074:0xac,_0x4494bf:0x4b,_0x17f848:0xe6,_0x132610:0x157,_0x2512ae:0xf9,_0x5c1fdc:0x64,_0x59a2ba:0x10f,_0x1ddcf5:0xd1,_0x482a05:0xe7,_0x532250:0x12e,_0x366e52:0x185,_0x172248:0x16b,_0x13c452:0x8e,_0x207ffe:0xe1,_0x2527b2:0x100,_0x18f2b1:0x12a,_0x1486d0:0x88,_0x49f0f6:0x14c,_0x14b830:0x173,_0x238155:0xe8,_0x56460e:0x139,_0x2f88f0:0x5c,_0x5c25a3:0xc,_0x58327c:0xaa,_0x2ab86e:0xcb,_0x11e08a:0x11a,_0x4ab214:0x157,_0x3f9d50:0x18a,_0x1d1398:0x1ac,_0x2f12c9:0x72,_0x59b248:0x5e,_0x44cfd5:0xd9,_0x592c90:0xb9,_0x50ee4a:0x109,_0x1c5b86:0xb5,_0x59e65b:0x1c4,_0x392cda:0x148,_0x58f6cf:0xf2,_0x2982d6:0x146,_0x1642e4:0x7c,_0xdab512:0xd7,_0x241fd9:0x3a,_0x56c7ed:0xa9,_0x5c418e:0xdf,_0x536b40:0x15c,_0x1d136:0x115,_0x3450fb:0xaf,_0x1ffecb:0x5a,_0x23ab45:0x95,_0x53e8e6:0xe3,_0x51c765:0xe4,_0x23319e:0xcb},_0x4fa327={_0x40922a:0x2},_0x5df7a2={_0x4d2532:0x33},_0x273718={_0x283b6b:0x22b,_0x3fc046:0x1e3,_0x3a8d90:0x24b},_0x4df330={_0x2a723c:0x122},_0x526d91={_0x370cd8:0x121,_0x3b2279:0x79};function _0x1b7d38(_0x48670d,_0x5bc494,_0x5466b2,_0xd0cfdc){return _0x33ed24(_0x48670d-_0x526d91._0x370cd8,_0x48670d,_0x5bc494-_0x526d91._0x3b2279,_0xd0cfdc-0xb9);}const _0xfe6b65={'LwmOK':function(_0x4d830a,_0x57297d,_0x1b1eba){return _0x4d830a(_0x57297d,_0x1b1eba);},'aYvou':function(_0x1d8419,_0x16cb5e){return _0x1d8419===_0x16cb5e;},'PmTcn':_0x268dcf(_0x1fe983._0x5748e5,0x48,_0x1fe983._0x18c2b6,_0x1fe983._0x3c706a),'kYVsL':function(_0x1a718a,_0x504a3f){return _0x1a718a(_0x504a3f);},'arHmB':function(_0xfdf944,_0x53f49e){return _0xfdf944(_0x53f49e);},'VzMki':_0x268dcf(_0x1fe983._0x2ba899,-_0x1fe983._0x4eba4c,_0x1fe983._0x112319,0x43),'JwzMT':_0x268dcf(_0x1fe983._0x3013e6,_0x1fe983._0x58f54c,0x28,-0x56)+_0x1b7d38(-_0x1fe983._0x228dba,-_0x1fe983._0x27fe5c,-0xc0,-0xc3),'rRvXJ':function(_0x83edfe,_0x365ada){return _0x83edfe!==_0x365ada;},'dGRsT':'iMxCY','iXXWY':function(_0x1a830b,_0xdab271,_0x255b24){return _0x1a830b(_0xdab271,_0x255b24);},'KBmGC':_0x1b7d38(-_0x1fe983._0x1d6a75,-0x80,-_0x1fe983._0x104f20,-0xa0)+'or','tOcZq':function(_0xbc02ee){return _0xbc02ee();}};if(!this['botToken']||this[_0x1b7d38(-0x2c,-_0x1fe983._0x419cdc,-_0x1fe983._0x4d0e04,-_0x1fe983._0x1a63cd)+'g'])return;this[_0x1b7d38(-_0x1fe983._0xc56f86,-_0x1fe983._0x419cdc,-_0x1fe983._0x772749,-0x3c)+'g']=!![],this[_0x268dcf(_0x1fe983._0x3ef539,0x9c,_0x1fe983._0x14f45c,0x8b)+_0x268dcf(_0x1fe983._0x598b9c,0xdf,_0x1fe983._0x385828,0x2d)+_0x268dcf(_0x1fe983._0x3b3e17,0xb5,_0x1fe983._0x2efa76,0x167)]=new AbortController(),this['register'+_0x1b7d38(-0x57,-_0x1fe983._0x3ca771,_0x1fe983._0x7746e3,-0x6f)+_0x1b7d38(-0x51,-0x38,-_0x1fe983._0x21f5a1,0x21)]()['catch'](()=>{});function _0x268dcf(_0x27e2bf,_0x4833b2,_0x1defd9,_0x2f2cf5){return _0x33ed24(_0x27e2bf-0x13a,_0x27e2bf,_0x1defd9-0x172,_0x2f2cf5-_0x4df330._0x2a723c);}const _0x4cc62b=async()=>{const _0x20d5d7={_0x55f042:0x1be},_0x431952={_0x4a533a:0x2d,_0x5d9c87:0x8f,_0x443c78:0x6e},_0x437b3e={_0x34a511:0x1b7,_0x1712bc:0xec},_0x16b84f={_0x580993:0x1ad},_0x2c2740={'YcPjj':function(_0x579836,_0x2b913b){function _0x1eccc1(_0x30fc90,_0x41a6d4,_0xba5e8e,_0x1a0bf1){return _0x2d69(_0xba5e8e-0x12e,_0x41a6d4);}return _0xfe6b65[_0x1eccc1(_0x273718._0x283b6b,_0x273718._0x3fc046,_0x273718._0x3a8d90,0x2a6)](_0x579836,_0x2b913b);},'cWaMR':_0xfe6b65[_0x8813e4(_0x1b8263._0x33f693,0x194,_0x1b8263._0x316e72,0x247)],'cFCfv':function(_0x585012,_0x527c59){const _0x492d6b={_0x4229ce:0x85,_0x411d31:0x149};function _0x5f4f5f(_0x4f20cb,_0xa93a67,_0x466036,_0x4a56fd){return _0x8813e4(_0x4f20cb-_0x492d6b._0x4229ce,_0x4f20cb,_0x466036- -0x1,_0x4a56fd-_0x492d6b._0x411d31);}return _0xfe6b65[_0x5f4f5f(0x25a,0x1b8,0x203,_0x16b84f._0x580993)](_0x585012,_0x527c59);},'ZrfNW':function(_0x47b3df,_0x50097f){return _0xfe6b65['arHmB'](_0x47b3df,_0x50097f);},'KnBvP':function(_0x1cde68,_0x54e663,_0x504d2e){function _0x52e52c(_0x203db2,_0x27d495,_0x5e37d7,_0x276313){return _0x8813e4(_0x203db2-0x9f,_0x276313,_0x203db2- -_0x437b3e._0x34a511,_0x276313-_0x437b3e._0x1712bc);}return _0xfe6b65[_0x52e52c(-_0x431952._0x4a533a,-_0x431952._0x5d9c87,0x23,-_0x431952._0x443c78)](_0x1cde68,_0x54e663,_0x504d2e);},'XIUOz':'Markdown','jQMUF':_0xfe6b65[_0x82029c(-0x122,-0xa3,-_0x1b8263._0x555d3b,-0x132)],'PMLAp':_0xfe6b65['JwzMT']};function _0x8813e4(_0x2502f2,_0x19ea18,_0x201116,_0x21d437){return _0x268dcf(_0x19ea18,_0x19ea18-_0x5df7a2._0x4d2532,_0x201116-0x170,_0x21d437-0x150);}function _0x82029c(_0x16593d,_0x4cd8e4,_0x1163bd,_0x231102){return _0x268dcf(_0x4cd8e4,_0x4cd8e4-0x138,_0x16593d- -0x1d5,_0x231102-_0x4fa327._0x40922a);}while(this['isPollin'+'g']){if(_0xfe6b65[_0x8813e4(_0x1b8263._0x219e2e,0x153,0x1d6,_0x1b8263._0x355e8d)](_0xfe6b65[_0x8813e4(0x2bc,_0x1b8263._0x5ccc68,0x238,0x1d0)],_0xfe6b65[_0x8813e4(_0x1b8263._0x14c713,_0x1b8263._0x1f17fc,0x238,0x2ba)]))_0xfe6b65[_0x82029c(-0x1bb,-0x1e1,-_0x1b8263._0x534f81,-0x1af)](_0x1bd45b,_0xcbd38a[_0x8813e4(_0x1b8263._0x1d7694,_0x1b8263._0x13285a,_0x1b8263._0x2da7f9,_0x1b8263._0x3799ed)],_0x392b93[_0x82029c(-0x11d,-_0x1b8263._0x540c21,-0xcd,-_0x1b8263._0xd85e80)][_0x82029c(-_0x1b8263._0x3ce0db,-_0x1b8263._0x230c94,-0x183,-0xed)+'id']);else try{const _0x35754d='https://'+_0x82029c(-_0x1b8263._0x709c58,-0x13a,-0x5c,-_0x1b8263._0x23b786)+_0x82029c(-0xca,-0x121,-0xd0,-0x10e)+'/bot'+this[_0x82029c(-_0x1b8263._0x546bc3,-_0x1b8263._0xc1961c,-0x1bc,-0xb1)]+('/getUpda'+_0x8813e4(_0x1b8263._0x4ee859,0x18f,_0x1b8263._0x2936c3,0x17a)+'et=')+(this['lastUpda'+_0x82029c(-_0x1b8263._0x12eaa7,-_0x1b8263._0x5c262b,-_0x1b8263._0x22015f,-0x12d)]+(0x6d*0x4+0x1a61*-0x1+0x18ae))+(_0x82029c(-_0x1b8263._0x5998ac,-_0x1b8263._0x3305b2,-0x19e,-_0x1b8263._0x1a23a5)+'=20'),_0x472741=await _0xfe6b65['iXXWY'](fetch,_0x35754d,{'signal':this[_0x82029c(-_0x1b8263._0xaeb10c,-_0x1b8263._0x5b78b8,-0x110,-0x1bd)+_0x82029c(-_0x1b8263._0x425e71,-_0x1b8263._0x206c8d,-0x18a,-_0x1b8263._0xeec57a)+_0x82029c(-_0x1b8263._0x12c761,-_0x1b8263._0x21c10d,-0x136,-_0x1b8263._0x5528a8)]?.[_0x82029c(-0x172,-_0x1b8263._0x1aeacf,-0x172,-0x1db)]});if(!_0x472741['ok']){await new Promise(_0x40d0fa=>setTimeout(_0x40d0fa,0xf8a*-0x2+0x1e7b+0x869));continue;}const _0x207e4c=await _0x472741[_0x82029c(-0x14d,-_0x1b8263._0x4906cd,-0x12d,-0xe5)]();if(_0x207e4c['ok']&&Array['isArray'](_0x207e4c[_0x8813e4(0x21d,_0x1b8263._0x12d97a,_0x1b8263._0x3d4882,0x1e8)])){const _0x31ee04=_0x207e4c[_0x82029c(-_0x1b8263._0x4caa35,-_0x1b8263._0x3df918,-_0x1b8263._0x38d176,-0x13a)][_0x8813e4(_0x1b8263._0x15365a,0x1a0,_0x1b8263._0x534296,_0x1b8263._0x42a6ed)](async _0x35c600=>{const _0x4c5a15={_0x2f564c:0x1b9};function _0x96f952(_0x13675a,_0x276a4c,_0x56f79e,_0xf6fa79){return _0x82029c(_0x276a4c-0x5c,_0xf6fa79,_0x56f79e-_0x20d5d7._0x55f042,_0xf6fa79-0x59);}function _0x5cf40c(_0x2eac12,_0xa17446,_0x54899d,_0x4a52f2){return _0x82029c(_0xa17446-0x6e,_0x54899d,_0x54899d-0x195,_0x4a52f2-_0x4c5a15._0x2f564c);}if(_0x2c2740[_0x5cf40c(-_0x242c61._0x2d1d07,-_0x242c61._0x1d68ef,-_0x242c61._0x1c3264,-_0x242c61._0x143697)](_0x2c2740[_0x5cf40c(-0xad,-_0x242c61._0x2718a5,-0x106,-0x94)],_0x2c2740[_0x96f952(-0xef,-0xaf,-0x132,-0x69)])){this[_0x96f952(-_0x242c61._0x1a381a,-0x92,-0x32,-_0x242c61._0x5281f3)+_0x96f952(-0xaa,-0xa6,-_0x242c61._0x35d204,-_0x242c61._0x1e87e8)]=Math[_0x5cf40c(-_0x242c61._0x4f1c4b,-_0x242c61._0x3fbc8c,-0xc0,-_0x242c61._0x587de5)](this['lastUpda'+'teId'],_0x35c600['update_i'+'d']),this[_0x96f952(-_0x242c61._0x2fe4b3,-_0x242c61._0x30129f,-_0x242c61._0x8ba1e6,-_0x242c61._0xbfa589)+_0x5cf40c(-_0x242c61._0x3443d0,-0x70,-_0x242c61._0x3ce949,-_0x242c61._0x29e5c0)](this[_0x5cf40c(-0x4f,-0x80,-_0x242c61._0x36072c,-_0x242c61._0x175a67)+_0x5cf40c(-0x1f,-_0x242c61._0x486ce8,-_0x242c61._0x19e0dc,-_0x242c61._0x5281f3)]);if(_0x445293)_0x2c2740[_0x96f952(-_0x242c61._0x1cd7cb,-_0x242c61._0x208081,-0x182,-0x143)](_0x445293,_0x35c600);_0x35c600[_0x96f952(-0xf4,-_0x242c61._0x58e8a4,-_0x242c61._0x1f565c,-_0x242c61._0x4ae835)+'_query']?.['id']&&this[_0x5cf40c(-0xd3,-0xe6,-_0x242c61._0x4e699d,-_0x242c61._0x441637)+_0x96f952(-_0x242c61._0xe4d0b,-_0x242c61._0x1331ee,-_0x242c61._0x301c38,-_0x242c61._0x27542e)+_0x96f952(-0x21,-0xa4,-0x4b,-0x7f)](_0x35c600[_0x96f952(-0x101,-_0x242c61._0x5298a9,-0x152,-_0x242c61._0xb2f7de)+_0x96f952(-_0x242c61._0x1a24bc,-0xf2,-_0x242c61._0x20e835,-0x101)]['id'])[_0x96f952(-_0x242c61._0x54e816,-0x115,-0xc2,-_0x242c61._0x337a27)](()=>{});const _0x300a09=await _0x2c2740['ZrfNW'](_0x4473cc,_0x35c600);if(_0x300a09&&_0x300a09[_0x5cf40c(-_0x242c61._0xe701a3,-0xff,-0x115,-0xa2)]&&_0x300a09[_0x96f952(-0x3f,-0x8e,-0x49,-0x6)]){let _0x4e1542=await _0x2c2740[_0x96f952(-0x117,-0x11c,-0xc1,-_0x242c61._0x4b0922)](fetch,_0x5cf40c(-_0x242c61._0x463e9b,-0x127,-0x173,-_0x242c61._0x19e0dc)+_0x5cf40c(-0x29,-_0x242c61._0x586dd1,-_0x242c61._0x25e6bb,0x2c)+_0x96f952(-0x48,-_0x242c61._0x387180,-0x4d,-0xbd)+_0x96f952(-_0x242c61._0x2a1e19,-_0x242c61._0x400778,-0x128,-_0x242c61._0x2129c5)+this[_0x5cf40c(-0x139,-0xca,-_0x242c61._0x212074,-_0x242c61._0x4494bf)]+(_0x96f952(-_0x242c61._0x17f848,-_0x242c61._0x132610,-_0x242c61._0x2512ae,-0x1a3)+_0x5cf40c(-0xeb,-0xaa,-0x7f,-_0x242c61._0x5c1fdc)),{'method':_0x5cf40c(-0x186,-_0x242c61._0x59a2ba,-_0x242c61._0x1ddcf5,-0x193),'headers':{'Content-Type':'applicat'+_0x5cf40c(-0xf6,-0xb1,-0xd5,-_0x242c61._0x208081)},'body':JSON[_0x5cf40c(-_0x242c61._0x482a05,-_0x242c61._0x532250,-0x128,-0xbf)+'y']({'chat_id':_0x300a09[_0x96f952(-0x125,-0x111,-_0x242c61._0x366e52,-_0x242c61._0x172248)],'text':_0x300a09[_0x96f952(-0xc9,-_0x242c61._0x13c452,-_0x242c61._0x207ffe,-0xc0)],'reply_markup':_0x300a09['replyMar'+_0x5cf40c(-0x89,-_0x242c61._0x2527b2,-_0x242c61._0x18f2b1,-_0x242c61._0x1486d0)]||undefined,'parse_mode':_0x2c2740[_0x5cf40c(-_0x242c61._0x49f0f6,-0x149,-_0x242c61._0x14b830,-_0x242c61._0x238155)]})})['catch'](()=>null);(!_0x4e1542||!_0x4e1542['ok'])&&(_0x4e1542=await fetch(_0x96f952(-0x1a8,-_0x242c61._0x56460e,-0xd1,-0x1b0)+_0x96f952(0xc,-0x6a,-_0x242c61._0x586dd1,-0xad)+_0x5cf40c(-0x8e,-_0x242c61._0x2f88f0,-_0x242c61._0x5c25a3,-_0x242c61._0x58327c)+_0x5cf40c(-0x1a5,-0x135,-0xd8,-_0x242c61._0x2ab86e)+this[_0x96f952(-_0x242c61._0x11e08a,-0xdc,-0xa7,-0xe1)]+(_0x96f952(-0x13b,-_0x242c61._0x4ab214,-_0x242c61._0x3f9d50,-_0x242c61._0x1d1398)+_0x5cf40c(-_0x242c61._0x2f12c9,-_0x242c61._0x58327c,-_0x242c61._0x59b248,-_0x242c61._0x44cfd5)),{'method':_0x2c2740[_0x5cf40c(-_0x242c61._0x592c90,-_0x242c61._0x50ee4a,-0x15a,-_0x242c61._0x1c5b86)],'headers':{'Content-Type':_0x2c2740[_0x96f952(-_0x242c61._0x59e65b,-_0x242c61._0x392cda,-0x1b7,-_0x242c61._0x58f6cf)]},'body':JSON['stringif'+'y']({'chat_id':_0x300a09[_0x5cf40c(-_0x242c61._0x2982d6,-0xff,-0x136,-0x170)],'text':_0x300a09[_0x5cf40c(-0x89,-_0x242c61._0x1642e4,-0xd5,-0xa1)],'reply_markup':_0x300a09[_0x5cf40c(-_0x242c61._0xdab512,-0x72,-_0x242c61._0x241fd9,-0x4d)+'kup']||undefined})})['catch'](()=>null));if(_0x4e1542&&_0x4e1542['ok']){const _0x3b366d=await _0x4e1542[_0x5cf40c(-_0x242c61._0x56c7ed,-_0x242c61._0x5c418e,-0xcf,-0xe7)]()[_0x96f952(-_0x242c61._0x536b40,-_0x242c61._0x1d136,-0xc5,-0x175)](()=>null);_0x3b366d?.[_0x5cf40c(-0x4a,-_0x242c61._0x3450fb,-_0x242c61._0x13c452,-0x113)]?.[_0x96f952(-_0x242c61._0x1ffecb,-0xaa,-_0x242c61._0x23ab45,-_0x242c61._0x53e8e6)+'id']&&_0xc0cb36&&_0xc0cb36(_0x300a09['chatId'],_0x3b366d[_0x96f952(-0xd0,-_0x242c61._0x3443d0,-_0x242c61._0x51c765,-_0x242c61._0x23319e)][_0x5cf40c(-0x38,-0x98,-0x1c,-0x59)+'id']);}}}else return![];});await Promise['all'](_0x31ee04);}}catch(_0x4015bc){if(_0x4015bc[_0x8813e4(_0x1b8263._0x4b1b2e,0x1c2,0x1b6,0x16a)]===_0xfe6b65[_0x8813e4(0x17b,_0x1b8263._0x4d79e6,0x200,0x1c0)])break;await new Promise(_0x6f6c23=>setTimeout(_0x6f6c23,-0x1586+-0x2130+0x3c92));}}};_0xfe6b65[_0x268dcf(0xf5,0x19,_0x1fe983._0xe4784b,_0x1fe983._0x56e144)](_0x4cc62b);}['stopPoll'+'ing'](){const _0xc371b9={_0x5160ef:0x59,_0x125360:0xbf,_0x1428cb:0x54,_0x5ba8bd:0x10,_0x2058b3:0x63,_0x21d6d5:0x1,_0x298e22:0x14,_0x5e1b7a:0x39,_0x155538:0x98,_0x34815e:0x94,_0x2b029d:0x7d,_0xaf9b7a:0x78,_0x5480c9:0x28,_0x650e32:0xab,_0x29f8d5:0x110,_0xd3e251:0x5a,_0xb12614:0xaf,_0x15b522:0x43,_0x244ca1:0x68,_0x383bb5:0x49,_0x16a424:0x8},_0x38c7d7={_0x1f5f44:0x1c5,_0x51e1cc:0x13d};function _0x3a33a3(_0x50b277,_0x479897,_0x5a1998,_0x480d35){return _0x33ed24(_0x50b277-0x56,_0x50b277,_0x479897-0x117,_0x480d35-0x185);}function _0xf3fd93(_0x240f0d,_0x553360,_0x3e6248,_0x4d1e5b){return _0x33ed24(_0x240f0d-_0x38c7d7._0x1f5f44,_0x240f0d,_0x4d1e5b-_0x38c7d7._0x51e1cc,_0x4d1e5b-0x146);}this[_0xf3fd93(0xd5,0x91,_0xc371b9._0x5160ef,_0xc371b9._0x125360)+'g']=![],this[_0x3a33a3(-_0xc371b9._0x1428cb,_0xc371b9._0x5ba8bd,_0xc371b9._0x2058b3,0x1f)+_0x3a33a3(-0x54,_0xc371b9._0x21d6d5,-_0xc371b9._0x298e22,_0xc371b9._0x5e1b7a)+_0xf3fd93(_0xc371b9._0x155538,_0xc371b9._0x34815e,_0xc371b9._0x2b029d,0xaa)]&&(this[_0xf3fd93(0x94,_0xc371b9._0xaf9b7a,0x7c,0x36)+_0xf3fd93(-_0xc371b9._0x5480c9,0x95,0x9e,0x27)+_0x3a33a3(0x103,0x84,_0xc371b9._0x650e32,0xfd)][_0xf3fd93(_0xc371b9._0x29f8d5,_0xc371b9._0xd3e251,0x5c,_0xc371b9._0xb12614)](),this[_0x3a33a3(_0xc371b9._0x15b522,0x10,-_0xc371b9._0x244ca1,-0x30)+_0x3a33a3(0x2f,_0xc371b9._0x21d6d5,_0xc371b9._0x383bb5,_0xc371b9._0x16a424)+'ler']=null);}async['download'+'FileBuff'+'er'](_0x5cb9fe){const _0x596a9e={_0xfaf3bf:0xa7,_0xbfc075:0x19a,_0x2af88b:0x13a,_0x2fca0a:0x16a,_0x358efa:0xec,_0x458983:0xd4,_0x4cb509:0x15e,_0x8a6d56:0x8a,_0x2f0416:0xf3,_0x486f7c:0x11f,_0x58719e:0x182,_0x23b6ee:0x12e,_0x22c503:0x143,_0x2ce6ad:0x175,_0xf71695:0x15f,_0x2e0192:0x1ec,_0x43ccaf:0x18c,_0x1654b1:0x16b,_0x1c0ea:0xf1,_0x3a3e40:0x197,_0x80aa42:0x190,_0x307268:0x209,_0xced074:0x151,_0x5d46f4:0x14b,_0x4214a0:0x15d,_0x11abce:0xfe,_0x181054:0xc6,_0x4967b8:0x1d3,_0x2b014e:0x16e,_0xc915b5:0x196,_0x11e7d5:0x165,_0x435582:0x29d,_0x4d458b:0x165,_0x577e80:0x156,_0x37f528:0x236,_0x1e9453:0x1bf},_0x1fc25d={_0x3e8300:0xd5},_0x5d99a6={'BKtLB':function(_0x248697,_0x13b560){return _0x248697(_0x13b560);},'ZoeQC':function(_0x48b602,_0x843a48){return _0x48b602(_0x843a48);}};function _0x16d5e7(_0x5b7b16,_0x4213bd,_0x15345d,_0x5dfd6d){return _0x18d02e(_0x5b7b16-0xaa,_0x15345d,_0x5dfd6d- -0x127,_0x5dfd6d-0x2a);}function _0x364de5(_0x224c9b,_0x2a367e,_0x3f5a71,_0x21e110){return _0x18d02e(_0x224c9b-_0x1fc25d._0x3e8300,_0x3f5a71,_0x2a367e- -0x41c,_0x21e110-0x69);}try{const _0x822f95=await _0x5d99a6[_0x16d5e7(0xf1,0x12c,_0x596a9e._0xfaf3bf,0x116)](fetch,_0x16d5e7(_0x596a9e._0xbfc075,0xf1,0x16b,_0x596a9e._0x2af88b)+_0x364de5(-_0x596a9e._0x2fca0a,-_0x596a9e._0x358efa,-0x115,-_0x596a9e._0x458983)+'gram.org'+_0x364de5(-0x14f,-0x1c9,-_0x596a9e._0x4cb509,-0x185)+this['botToken']+('/getFile'+_0x16d5e7(_0x596a9e._0x8a6d56,_0x596a9e._0x2f0416,_0x596a9e._0x486f7c,0x10d)+'=')+_0x5cb9fe),_0x160b1c=await _0x822f95[_0x16d5e7(0x133,0x15f,0x195,_0x596a9e._0x58719e)]();if(!_0x160b1c['ok']||!_0x160b1c[_0x364de5(-_0x596a9e._0x23b6ee,-_0x596a9e._0x22c503,-_0x596a9e._0x2ce6ad,-0x19e)]?.[_0x16d5e7(_0x596a9e._0xf71695,_0x596a9e._0x2e0192,0x17b,_0x596a9e._0x43ccaf)+'h'])return null;const _0x376c45=_0x160b1c[_0x364de5(-_0x596a9e._0x1654b1,-0x143,-0x118,-0xe6)]['file_pat'+'h'],_0x5f0f83=_0x16d5e7(0xc6,0x14f,_0x596a9e._0x1c0ea,0x13a)+_0x16d5e7(_0x596a9e._0x3a3e40,0x25b,_0x596a9e._0x80aa42,_0x596a9e._0x307268)+_0x364de5(-_0x596a9e._0xced074,-0xf0,-_0x596a9e._0x5d46f4,-_0x596a9e._0x4214a0)+_0x364de5(-_0x596a9e._0x11abce,-0xdd,-0x75,-_0x596a9e._0x181054)+'t'+this[_0x16d5e7(_0x596a9e._0x4967b8,_0x596a9e._0x2b014e,0x1d6,0x197)]+'/'+_0x376c45,_0xbdfe8d=await _0x5d99a6[_0x364de5(-0x206,-_0x596a9e._0xc915b5,-0x20f,-_0x596a9e._0x11e7d5)](fetch,_0x5f0f83),_0x523363=await _0xbdfe8d[_0x16d5e7(0x20f,_0x596a9e._0x435582,0x1fe,0x217)+_0x16d5e7(0x177,0x169,_0x596a9e._0x4d458b,0x1db)]();return{'buffer':Buffer[_0x364de5(-0xdc,-0x118,-0x10e,-0x134)](_0x523363),'fileName':_0x376c45?_0x376c45[_0x16d5e7(0x183,0x171,_0x596a9e._0x577e80,0x123)]('/')[_0x16d5e7(0x1bc,0x21a,_0x596a9e._0x37f528,_0x596a9e._0x1e9453)]():undefined};}catch{return null;}}}
|
|
5
|
+
import fs from 'fs';
|
|
6
|
+
import path from 'path';
|
|
7
|
+
import os from 'os';
|
|
8
|
+
export class TelegramClient {
|
|
9
|
+
botToken;
|
|
10
|
+
isPolling = false;
|
|
11
|
+
pollAbortController = null;
|
|
12
|
+
lastUpdateId = 0;
|
|
13
|
+
constructor(botToken) {
|
|
14
|
+
this.botToken = botToken;
|
|
15
|
+
this.loadPersistedUpdateId();
|
|
16
|
+
}
|
|
17
|
+
loadPersistedUpdateId() {
|
|
18
|
+
try {
|
|
19
|
+
const filePath = path.join(os.homedir(), '.editormate', 'telegram_offset.json');
|
|
20
|
+
if (fs.existsSync(filePath)) {
|
|
21
|
+
const raw = fs.readFileSync(filePath, 'utf8');
|
|
22
|
+
const data = JSON.parse(raw);
|
|
23
|
+
if (data && typeof data.lastUpdateId === 'number') {
|
|
24
|
+
this.lastUpdateId = data.lastUpdateId;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
catch { }
|
|
29
|
+
}
|
|
30
|
+
persistUpdateId(id) {
|
|
31
|
+
try {
|
|
32
|
+
const dir = path.join(os.homedir(), '.editormate');
|
|
33
|
+
if (!fs.existsSync(dir))
|
|
34
|
+
fs.mkdirSync(dir, { recursive: true });
|
|
35
|
+
fs.writeFileSync(path.join(dir, 'telegram_offset.json'), JSON.stringify({ lastUpdateId: id }), 'utf8');
|
|
36
|
+
}
|
|
37
|
+
catch { }
|
|
38
|
+
}
|
|
39
|
+
updateToken(token) {
|
|
40
|
+
this.botToken = token;
|
|
41
|
+
}
|
|
42
|
+
getToken() {
|
|
43
|
+
return this.botToken;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Intelligently chunks messages exceeding Telegram's 4096 character limit.
|
|
47
|
+
*/
|
|
48
|
+
chunkMessage(text, maxLen = 4000) {
|
|
49
|
+
if (text.length <= maxLen)
|
|
50
|
+
return [text];
|
|
51
|
+
const chunks = [];
|
|
52
|
+
let remaining = text;
|
|
53
|
+
while (remaining.length > 0) {
|
|
54
|
+
if (remaining.length <= maxLen) {
|
|
55
|
+
chunks.push(remaining);
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
58
|
+
let splitIdx = remaining.lastIndexOf('\n\n', maxLen);
|
|
59
|
+
if (splitIdx === -1 || splitIdx < maxLen * 0.4) {
|
|
60
|
+
splitIdx = remaining.lastIndexOf('\n', maxLen);
|
|
61
|
+
}
|
|
62
|
+
if (splitIdx === -1 || splitIdx < maxLen * 0.4) {
|
|
63
|
+
splitIdx = remaining.lastIndexOf(' ', maxLen);
|
|
64
|
+
}
|
|
65
|
+
if (splitIdx === -1 || splitIdx < maxLen * 0.4) {
|
|
66
|
+
splitIdx = maxLen;
|
|
67
|
+
}
|
|
68
|
+
chunks.push(remaining.substring(0, splitIdx).trim());
|
|
69
|
+
remaining = remaining.substring(splitIdx).trim();
|
|
70
|
+
}
|
|
71
|
+
return chunks;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Sends immediate chat action (typing, upload_photo, upload_document) for fast visual feedback.
|
|
75
|
+
*/
|
|
76
|
+
async sendChatAction(chatId, action = 'typing') {
|
|
77
|
+
if (!this.botToken)
|
|
78
|
+
return;
|
|
79
|
+
try {
|
|
80
|
+
await fetch(`https://api.telegram.org/bot${this.botToken}/sendChatAction`, {
|
|
81
|
+
method: 'POST',
|
|
82
|
+
headers: { 'Content-Type': 'application/json' },
|
|
83
|
+
body: JSON.stringify({ chat_id: chatId, action }),
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
catch { }
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Sends a text message to Telegram with auto-chunking and Markdown retry fallback.
|
|
90
|
+
*/
|
|
91
|
+
async sendMessage(recipientId, text, options) {
|
|
92
|
+
if (!this.botToken)
|
|
93
|
+
return false;
|
|
94
|
+
const chunks = this.chunkMessage(text, 4000);
|
|
95
|
+
let allOk = true;
|
|
96
|
+
for (let i = 0; i < chunks.length; i++) {
|
|
97
|
+
const chunk = chunks[i];
|
|
98
|
+
const isLast = i === chunks.length - 1;
|
|
99
|
+
const payload = {
|
|
100
|
+
chat_id: recipientId,
|
|
101
|
+
text: chunk,
|
|
102
|
+
parse_mode: options?.parseMode === 'plain' ? undefined : 'Markdown',
|
|
103
|
+
};
|
|
104
|
+
if (isLast && options?.reply_markup) {
|
|
105
|
+
payload.reply_markup = options.reply_markup;
|
|
106
|
+
}
|
|
107
|
+
try {
|
|
108
|
+
const res = await fetch(`https://api.telegram.org/bot${this.botToken}/sendMessage`, {
|
|
109
|
+
method: 'POST',
|
|
110
|
+
headers: { 'Content-Type': 'application/json' },
|
|
111
|
+
body: JSON.stringify(payload),
|
|
112
|
+
});
|
|
113
|
+
if (!res.ok && options?.parseMode !== 'plain') {
|
|
114
|
+
// Retry without Markdown if syntax parsing failed
|
|
115
|
+
delete payload.parse_mode;
|
|
116
|
+
const retryRes = await fetch(`https://api.telegram.org/bot${this.botToken}/sendMessage`, {
|
|
117
|
+
method: 'POST',
|
|
118
|
+
headers: { 'Content-Type': 'application/json' },
|
|
119
|
+
body: JSON.stringify(payload),
|
|
120
|
+
});
|
|
121
|
+
if (!retryRes.ok)
|
|
122
|
+
allOk = false;
|
|
123
|
+
}
|
|
124
|
+
else if (!res.ok) {
|
|
125
|
+
allOk = false;
|
|
126
|
+
}
|
|
127
|
+
if (i < chunks.length - 1) {
|
|
128
|
+
await new Promise((r) => setTimeout(r, 120));
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
catch {
|
|
132
|
+
allOk = false;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
return allOk;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Edits an existing message in-place.
|
|
139
|
+
*/
|
|
140
|
+
async editMessage(recipientId, messageId, text, options) {
|
|
141
|
+
if (!this.botToken)
|
|
142
|
+
return false;
|
|
143
|
+
const chunks = this.chunkMessage(text, 4000);
|
|
144
|
+
const firstChunk = chunks[0] || text;
|
|
145
|
+
try {
|
|
146
|
+
const payload = {
|
|
147
|
+
chat_id: recipientId,
|
|
148
|
+
message_id: messageId,
|
|
149
|
+
text: firstChunk,
|
|
150
|
+
parse_mode: options?.parseMode === 'plain' ? undefined : 'Markdown',
|
|
151
|
+
};
|
|
152
|
+
if (options?.reply_markup) {
|
|
153
|
+
payload.reply_markup = options.reply_markup;
|
|
154
|
+
}
|
|
155
|
+
const res = await fetch(`https://api.telegram.org/bot${this.botToken}/editMessageText`, {
|
|
156
|
+
method: 'POST',
|
|
157
|
+
headers: { 'Content-Type': 'application/json' },
|
|
158
|
+
body: JSON.stringify(payload),
|
|
159
|
+
});
|
|
160
|
+
let ok = res.ok;
|
|
161
|
+
if (!res.ok && options?.parseMode !== 'plain') {
|
|
162
|
+
delete payload.parse_mode;
|
|
163
|
+
const retryRes = await fetch(`https://api.telegram.org/bot${this.botToken}/editMessageText`, {
|
|
164
|
+
method: 'POST',
|
|
165
|
+
headers: { 'Content-Type': 'application/json' },
|
|
166
|
+
body: JSON.stringify(payload),
|
|
167
|
+
});
|
|
168
|
+
ok = retryRes.ok;
|
|
169
|
+
}
|
|
170
|
+
if (chunks.length > 1) {
|
|
171
|
+
for (let i = 1; i < chunks.length; i++) {
|
|
172
|
+
await this.sendMessage(recipientId, chunks[i], options);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
return ok;
|
|
176
|
+
}
|
|
177
|
+
catch {
|
|
178
|
+
return false;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Sends a photo/screenshot to Telegram.
|
|
183
|
+
*/
|
|
184
|
+
async sendPhoto(chatId, filePath, caption, options) {
|
|
185
|
+
if (!this.botToken)
|
|
186
|
+
return false;
|
|
187
|
+
try {
|
|
188
|
+
const fileBuf = fs.readFileSync(filePath);
|
|
189
|
+
const form = new FormData();
|
|
190
|
+
form.append('chat_id', String(chatId));
|
|
191
|
+
if (caption) {
|
|
192
|
+
form.append('caption', caption);
|
|
193
|
+
form.append('parse_mode', options?.parse_mode || 'Markdown');
|
|
194
|
+
}
|
|
195
|
+
if (options?.reply_markup) {
|
|
196
|
+
form.append('reply_markup', typeof options.reply_markup === 'string' ? options.reply_markup : JSON.stringify(options.reply_markup));
|
|
197
|
+
}
|
|
198
|
+
const blob = new Blob([new Uint8Array(fileBuf)], { type: 'image/jpeg' });
|
|
199
|
+
form.append('photo', blob, 'screenshot.jpg');
|
|
200
|
+
const res = await fetch(`https://api.telegram.org/bot${this.botToken}/sendPhoto`, {
|
|
201
|
+
method: 'POST',
|
|
202
|
+
body: form,
|
|
203
|
+
});
|
|
204
|
+
return res.ok;
|
|
205
|
+
}
|
|
206
|
+
catch {
|
|
207
|
+
return false;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Sends a document / PDF to Telegram.
|
|
212
|
+
*/
|
|
213
|
+
async sendDocument(chatId, fileBuf, filename, caption) {
|
|
214
|
+
if (!this.botToken)
|
|
215
|
+
return false;
|
|
216
|
+
try {
|
|
217
|
+
const form = new FormData();
|
|
218
|
+
form.append('chat_id', String(chatId));
|
|
219
|
+
if (caption) {
|
|
220
|
+
form.append('caption', caption);
|
|
221
|
+
form.append('parse_mode', 'Markdown');
|
|
222
|
+
}
|
|
223
|
+
const blob = new Blob([new Uint8Array(fileBuf)], { type: 'application/pdf' });
|
|
224
|
+
form.append('document', blob, filename);
|
|
225
|
+
const res = await fetch(`https://api.telegram.org/bot${this.botToken}/sendDocument`, {
|
|
226
|
+
method: 'POST',
|
|
227
|
+
body: form,
|
|
228
|
+
});
|
|
229
|
+
return res.ok;
|
|
230
|
+
}
|
|
231
|
+
catch {
|
|
232
|
+
return false;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Acknowledges callback queries.
|
|
237
|
+
*/
|
|
238
|
+
async answerCallbackQuery(callbackQueryId, text) {
|
|
239
|
+
if (!this.botToken)
|
|
240
|
+
return;
|
|
241
|
+
try {
|
|
242
|
+
await fetch(`https://api.telegram.org/bot${this.botToken}/answerCallbackQuery`, {
|
|
243
|
+
method: 'POST',
|
|
244
|
+
headers: { 'Content-Type': 'application/json' },
|
|
245
|
+
body: JSON.stringify({ callback_query_id: callbackQueryId, text }),
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
catch { }
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* Registers bot command directory and sets native Menu button.
|
|
252
|
+
*/
|
|
253
|
+
async registerBotCommands() {
|
|
254
|
+
if (!this.botToken)
|
|
255
|
+
return;
|
|
256
|
+
try {
|
|
257
|
+
const commands = [
|
|
258
|
+
{ command: 'bring', description: 'Pull last 2-3 IDE messages to phone & link replies' },
|
|
259
|
+
{ command: 'chats', description: 'List 10 recent chats with time ago & switch' },
|
|
260
|
+
{ command: 'menu', description: 'Open quick action inline menu' },
|
|
261
|
+
{ command: 'status', description: 'Agent status, active task & git branch' },
|
|
262
|
+
{ command: 'screenshot', description: 'Capture live desktop/IDE screenshot' },
|
|
263
|
+
{ command: 'pdf', description: 'Generate & deliver autonomous system PDF' },
|
|
264
|
+
{ command: 'diff', description: 'View git diff of modified files' },
|
|
265
|
+
{ command: 'projects', description: 'List connected workspaces' },
|
|
266
|
+
{ command: 'terminal', description: 'Run terminal command in active workspace' },
|
|
267
|
+
{ command: 'mcp', description: 'Inspect active MCP tool servers' },
|
|
268
|
+
{ command: 'stop', description: 'Pause or cancel active agent task' },
|
|
269
|
+
{ command: 'help', description: 'Help & instructions' },
|
|
270
|
+
];
|
|
271
|
+
await fetch(`https://api.telegram.org/bot${this.botToken}/setMyCommands`, {
|
|
272
|
+
method: 'POST',
|
|
273
|
+
headers: { 'Content-Type': 'application/json' },
|
|
274
|
+
body: JSON.stringify({ commands }),
|
|
275
|
+
});
|
|
276
|
+
await fetch(`https://api.telegram.org/bot${this.botToken}/setChatMenuButton`, {
|
|
277
|
+
method: 'POST',
|
|
278
|
+
headers: { 'Content-Type': 'application/json' },
|
|
279
|
+
body: JSON.stringify({ menu_button: { type: 'commands' } }),
|
|
280
|
+
}).catch(() => { });
|
|
281
|
+
}
|
|
282
|
+
catch { }
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* Starts autonomous long-polling.
|
|
286
|
+
*/
|
|
287
|
+
async startPolling(onUpdate, onUpdateReceived, onPlaceholderMessageBound) {
|
|
288
|
+
if (!this.botToken || this.isPolling)
|
|
289
|
+
return;
|
|
290
|
+
this.isPolling = true;
|
|
291
|
+
this.pollAbortController = new AbortController();
|
|
292
|
+
this.registerBotCommands().catch(() => { });
|
|
293
|
+
const poll = async () => {
|
|
294
|
+
while (this.isPolling) {
|
|
295
|
+
try {
|
|
296
|
+
const url = `https://api.telegram.org/bot${this.botToken}/getUpdates?offset=${this.lastUpdateId + 1}&timeout=20`;
|
|
297
|
+
const res = await fetch(url, { signal: this.pollAbortController?.signal });
|
|
298
|
+
if (!res.ok) {
|
|
299
|
+
await new Promise((r) => setTimeout(r, 2000));
|
|
300
|
+
continue;
|
|
301
|
+
}
|
|
302
|
+
const json = (await res.json());
|
|
303
|
+
if (json.ok && Array.isArray(json.result)) {
|
|
304
|
+
const tasks = json.result.map(async (upd) => {
|
|
305
|
+
this.lastUpdateId = Math.max(this.lastUpdateId, upd.update_id);
|
|
306
|
+
this.persistUpdateId(this.lastUpdateId);
|
|
307
|
+
if (onUpdateReceived)
|
|
308
|
+
onUpdateReceived(upd);
|
|
309
|
+
if (upd.callback_query?.id) {
|
|
310
|
+
this.answerCallbackQuery(upd.callback_query.id).catch(() => { });
|
|
311
|
+
}
|
|
312
|
+
const reply = await onUpdate(upd);
|
|
313
|
+
if (reply && reply.chatId && reply.text) {
|
|
314
|
+
let sendRes = await fetch(`https://api.telegram.org/bot${this.botToken}/sendMessage`, {
|
|
315
|
+
method: 'POST',
|
|
316
|
+
headers: { 'Content-Type': 'application/json' },
|
|
317
|
+
body: JSON.stringify({
|
|
318
|
+
chat_id: reply.chatId,
|
|
319
|
+
text: reply.text,
|
|
320
|
+
reply_markup: reply.replyMarkup || undefined,
|
|
321
|
+
parse_mode: 'Markdown',
|
|
322
|
+
}),
|
|
323
|
+
}).catch(() => null);
|
|
324
|
+
if (!sendRes || !sendRes.ok) {
|
|
325
|
+
sendRes = await fetch(`https://api.telegram.org/bot${this.botToken}/sendMessage`, {
|
|
326
|
+
method: 'POST',
|
|
327
|
+
headers: { 'Content-Type': 'application/json' },
|
|
328
|
+
body: JSON.stringify({
|
|
329
|
+
chat_id: reply.chatId,
|
|
330
|
+
text: reply.text,
|
|
331
|
+
reply_markup: reply.replyMarkup || undefined,
|
|
332
|
+
}),
|
|
333
|
+
}).catch(() => null);
|
|
334
|
+
}
|
|
335
|
+
if (sendRes && sendRes.ok) {
|
|
336
|
+
const sentJson = (await sendRes.json().catch(() => null));
|
|
337
|
+
if (sentJson?.result?.message_id && onPlaceholderMessageBound) {
|
|
338
|
+
onPlaceholderMessageBound(reply.chatId, sentJson.result.message_id);
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
});
|
|
343
|
+
await Promise.all(tasks);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
catch (err) {
|
|
347
|
+
if (err.name === 'AbortError')
|
|
348
|
+
break;
|
|
349
|
+
await new Promise((r) => setTimeout(r, 1500));
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
poll();
|
|
354
|
+
}
|
|
355
|
+
stopPolling() {
|
|
356
|
+
this.isPolling = false;
|
|
357
|
+
if (this.pollAbortController) {
|
|
358
|
+
this.pollAbortController.abort();
|
|
359
|
+
this.pollAbortController = null;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* Downloads raw file buffer from Telegram Bot API servers using getFile.
|
|
364
|
+
*/
|
|
365
|
+
async downloadFileBuffer(fileId) {
|
|
366
|
+
try {
|
|
367
|
+
const fileInfoRes = await fetch(`https://api.telegram.org/bot${this.botToken}/getFile?file_id=${fileId}`);
|
|
368
|
+
const fileInfo = (await fileInfoRes.json());
|
|
369
|
+
if (!fileInfo.ok || !fileInfo.result?.file_path)
|
|
370
|
+
return null;
|
|
371
|
+
const remoteFilePath = fileInfo.result.file_path;
|
|
372
|
+
const downloadUrl = `https://api.telegram.org/file/bot${this.botToken}/${remoteFilePath}`;
|
|
373
|
+
const res = await fetch(downloadUrl);
|
|
374
|
+
const arrayBuffer = await res.arrayBuffer();
|
|
375
|
+
return {
|
|
376
|
+
buffer: Buffer.from(arrayBuffer),
|
|
377
|
+
fileName: remoteFilePath ? remoteFilePath.split('/').pop() : undefined,
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
catch {
|
|
381
|
+
return null;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
//# sourceMappingURL=telegram_client.js.map
|