From 2abab628a0c0716e5071aa272603555b996f870f Mon Sep 17 00:00:00 2001 From: kulikov0 <19497634+kulikov0@users.noreply.github.com> Date: Tue, 12 May 2026 20:20:29 +0200 Subject: [PATCH] update bot api formatting --- creator-app/src/main/tab-manager.ts | 2 +- creator-app/src/main/window.ts | 2 +- headless/vk-bot/main.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/creator-app/src/main/tab-manager.ts b/creator-app/src/main/tab-manager.ts index b75dc28..94970dd 100644 --- a/creator-app/src/main/tab-manager.ts +++ b/creator-app/src/main/tab-manager.ts @@ -198,7 +198,7 @@ export class TabManager { const tab = this.tabs.get(tabId); if (!tab || tab.peerId == null) return; console.log(`[MAIN] Headless call link for bot tab ${tabId}:`, link); - this._botManager.sendMessage(tab.peerId, `Call created!\n${link}`); + this._botManager.sendMessage(tab.peerId, link); } startRelay(tabId: string, tab: TabState): void { diff --git a/creator-app/src/main/window.ts b/creator-app/src/main/window.ts index 5f38d3a..1828e88 100644 --- a/creator-app/src/main/window.ts +++ b/creator-app/src/main/window.ts @@ -132,6 +132,6 @@ function handleBotCallLink(tabManager: TabManager, msg: string, platform: Platfo } console.log(`[MAIN] Sending ${platform} link to peer ${tab.peerId} (tab ${tagged.tabId}):`, tagged.link); if (tabManager.botManager) { - tabManager.botManager.sendMessage(tab.peerId, `Call created!\n${tagged.link}`); + tabManager.botManager.sendMessage(tab.peerId, tagged.link); } } diff --git a/headless/vk-bot/main.go b/headless/vk-bot/main.go index a56ef5c..2be78ce 100644 --- a/headless/vk-bot/main.go +++ b/headless/vk-bot/main.go @@ -239,7 +239,7 @@ func (b *bot) handleSpawn(peerID int64, platform string) { b.sendMessage(peerID, fmt.Sprintf("%s failed: %v", platform, err), mainMenuKeyboard()) return } - b.sendMessage(peerID, formatSession(sess), mainMenuKeyboard()) + b.sendMessage(peerID, sess.link, mainMenuKeyboard()) } func (b *bot) spawn(platform string) (*session, error) {